ASoC: wm9705: Fix build due to removal of 'runtime' definition
[firefly-linux-kernel-4.4.55.git] / sound / soc / codecs / wm8741.c
index 3941f50bf18787b57a9e99555c7f67a28b00eedc..6e849cb042430dc5ca22df08c1bb1708a36ec238 100644 (file)
@@ -203,8 +203,7 @@ static int wm8741_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;
        struct wm8741_priv *wm8741 = snd_soc_codec_get_drvdata(codec);
        u16 iface = snd_soc_read(codec, WM8741_FORMAT_CONTROL) & 0x1FC;
        int i;