ASoC: wm9705: Fix build due to removal of 'runtime' definition
[firefly-linux-kernel-4.4.55.git] / sound / soc / codecs / wm8990.c
index 9d242351e6e837211c70ffb37033874830ccb8b3..db63c97ddf5160afe74c8b2bcd9f9f1d28c27273 100644 (file)
@@ -1112,8 +1112,7 @@ static int wm8990_hw_params(struct snd_pcm_substream *substream,
                            struct snd_pcm_hw_params *params,
                            struct snd_soc_dai *dai)
 {
-       struct snd_soc_pcm_runtime *rtd = substream->private_data;
-       struct snd_soc_codec *codec = rtd->codec;
+       struct snd_soc_codec *codec = dai->codec;
        u16 audio1 = snd_soc_read(codec, WM8990_AUDIO_INTERFACE_1);
 
        audio1 &= ~WM8990_AIF_WL_MASK;