]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - sound/soc/codecs/wm8753.c
ASoC: wm8{350,753,971}: Use snd_soc_dapm_to_codec() instead of dapm->codec
[karo-tx-linux.git] / sound / soc / codecs / wm8753.c
index e54e097f4fcbb738870a6c51e9c0970f21e18ade..21ca3a94fc96eadabbc42cfcfdbf8b7eeefb5472 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);
 }