diff options
Diffstat (limited to 'sound/soc/codecs/wm9705.c')
-rw-r--r-- | sound/soc/codecs/wm9705.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sound/soc/codecs/wm9705.c b/sound/soc/codecs/wm9705.c index cacc6a86b46f..7c095939c179 100644 --- a/sound/soc/codecs/wm9705.c +++ b/sound/soc/codecs/wm9705.c | |||
@@ -236,9 +236,7 @@ static int ac97_write(struct snd_soc_codec *codec, unsigned int reg, | |||
236 | static int ac97_prepare(struct snd_pcm_substream *substream, | 236 | static int ac97_prepare(struct snd_pcm_substream *substream, |
237 | struct snd_soc_dai *dai) | 237 | struct snd_soc_dai *dai) |
238 | { | 238 | { |
239 | struct snd_pcm_runtime *runtime = substream->runtime; | 239 | struct snd_soc_codec *codec = dai->codec; |
240 | struct snd_soc_pcm_runtime *rtd = substream->private_data; | ||
241 | struct snd_soc_codec *codec = rtd->codec; | ||
242 | int reg; | 240 | int reg; |
243 | u16 vra; | 241 | u16 vra; |
244 | 242 | ||