ASoC: wm8{350,753,971}: Use snd_soc_dapm_to_codec() instead of dapm->codec
[cascardo/linux.git] / sound / soc / codecs / wm8753.c
index e54e097..21ca3a9 100644 (file)
@@ -1433,7 +1433,7 @@ static void wm8753_work(struct work_struct *work)
        struct snd_soc_dapm_context *dapm =
                container_of(work, struct snd_soc_dapm_context,
                             delayed_work.work);
-       struct snd_soc_codec *codec = dapm->codec;
+       struct snd_soc_codec *codec = snd_soc_dapm_to_codec(dapm);
        wm8753_set_bias_level(codec, dapm->bias_level);
 }