summaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs
diff options
context:
space:
mode:
authorMark Brown <broonie@opensource.wolfsonmicro.com>2013-04-05 14:19:26 +0200
committerMark Brown <broonie@opensource.wolfsonmicro.com>2013-04-09 18:50:55 +0200
commitf6f629f8332ea70255f6c60c904270640a21a114 (patch)
treec02f400f37784f0dc1331e5d2b80b745b3b49ea9 /sound/soc/codecs
parentLinux 3.9-rc6 (diff)
downloadlinux-f6f629f8332ea70255f6c60c904270640a21a114.tar.xz
linux-f6f629f8332ea70255f6c60c904270640a21a114.zip
ASoC: wm5102: Correct lookup of arizona struct in SYSCLK event
Reported-by: Ryo Tsutsui <Ryo.Tsutsui@wolfsonmicro.com> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Cc: stable@vger.kernel.org
Diffstat (limited to '')
-rw-r--r--sound/soc/codecs/wm5102.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/codecs/wm5102.c b/sound/soc/codecs/wm5102.c
index b82bbf584146..34d0201d6a78 100644
--- a/sound/soc/codecs/wm5102.c
+++ b/sound/soc/codecs/wm5102.c
@@ -584,7 +584,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;