From: Mark Brown Date: Fri, 5 Apr 2013 12:19:26 +0000 (+0100) Subject: ASoC: wm5102: Correct lookup of arizona struct in SYSCLK event X-Git-Tag: v3.8.8~25 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=eb86a770e10a9e2f67e3c338b0eec287092dddaf;p=karo-tx-linux.git ASoC: wm5102: Correct lookup of arizona struct in SYSCLK event commit f6f629f8332ea70255f6c60c904270640a21a114 upstream. Reported-by: Ryo Tsutsui Signed-off-by: Mark Brown Signed-off-by: Greg Kroah-Hartman --- diff --git a/sound/soc/codecs/wm5102.c b/sound/soc/codecs/wm5102.c index 1440b3f9b7bb..b54c2e86634a 100644 --- a/sound/soc/codecs/wm5102.c +++ b/sound/soc/codecs/wm5102.c @@ -576,7 +576,7 @@ static int wm5102_sysclk_ev(struct snd_soc_dapm_widget *w, struct snd_kcontrol *kcontrol, int event) { struct snd_soc_codec *codec = w->codec; - struct arizona *arizona = dev_get_drvdata(codec->dev); + struct arizona *arizona = dev_get_drvdata(codec->dev->parent); struct regmap *regmap = codec->control_data; const struct reg_default *patch = NULL; int i, patch_size;