]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/blame - releases/3.8.8/asoc-wm5102-correct-lookup-of-arizona-struct-in-sysclk-event.patch
5.1-stable patches
[thirdparty/kernel/stable-queue.git] / releases / 3.8.8 / asoc-wm5102-correct-lookup-of-arizona-struct-in-sysclk-event.patch
CommitLineData
fc3fed8a
GKH
1From f6f629f8332ea70255f6c60c904270640a21a114 Mon Sep 17 00:00:00 2001
2From: Mark Brown <broonie@opensource.wolfsonmicro.com>
3Date: Fri, 5 Apr 2013 13:19:26 +0100
4Subject: ASoC: wm5102: Correct lookup of arizona struct in SYSCLK event
5
6From: Mark Brown <broonie@opensource.wolfsonmicro.com>
7
8commit f6f629f8332ea70255f6c60c904270640a21a114 upstream.
9
10Reported-by: Ryo Tsutsui <Ryo.Tsutsui@wolfsonmicro.com>
11Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
12Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
13
14---
15 sound/soc/codecs/wm5102.c | 2 +-
16 1 file changed, 1 insertion(+), 1 deletion(-)
17
18--- a/sound/soc/codecs/wm5102.c
19+++ b/sound/soc/codecs/wm5102.c
20@@ -576,7 +576,7 @@ static int wm5102_sysclk_ev(struct snd_s
21 struct snd_kcontrol *kcontrol, int event)
22 {
23 struct snd_soc_codec *codec = w->codec;
24- struct arizona *arizona = dev_get_drvdata(codec->dev);
25+ struct arizona *arizona = dev_get_drvdata(codec->dev->parent);
26 struct regmap *regmap = codec->control_data;
27 const struct reg_default *patch = NULL;
28 int i, patch_size;