|
@@ -868,10 +868,6 @@ static int snd_soc_flat_cache_exit(struct snd_soc_codec *codec)
|
|
|
|
|
|
static int snd_soc_flat_cache_init(struct snd_soc_codec *codec)
|
|
static int snd_soc_flat_cache_init(struct snd_soc_codec *codec)
|
|
{
|
|
{
|
|
- const struct snd_soc_codec_driver *codec_drv;
|
|
|
|
-
|
|
|
|
- codec_drv = codec->driver;
|
|
|
|
-
|
|
|
|
if (codec->reg_def_copy)
|
|
if (codec->reg_def_copy)
|
|
codec->reg_cache = kmemdup(codec->reg_def_copy,
|
|
codec->reg_cache = kmemdup(codec->reg_def_copy,
|
|
codec->reg_size, GFP_KERNEL);
|
|
codec->reg_size, GFP_KERNEL);
|