diff options
-rw-r--r-- | sound/soc/codecs/wm8997.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/codecs/wm8997.c b/sound/soc/codecs/wm8997.c index 7e8bfe27566b..0760ede0a6e5 100644 --- a/sound/soc/codecs/wm8997.c +++ b/sound/soc/codecs/wm8997.c | |||
@@ -84,7 +84,7 @@ static const struct reg_default wm8997_sysclk_reva_patch[] = { | |||
84 | static int wm8997_sysclk_ev(struct snd_soc_dapm_widget *w, | 84 | static int wm8997_sysclk_ev(struct snd_soc_dapm_widget *w, |
85 | struct snd_kcontrol *kcontrol, int event) | 85 | struct snd_kcontrol *kcontrol, int event) |
86 | { | 86 | { |
87 | struct snd_soc_codec *codec = w->codec; | 87 | struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); |
88 | struct arizona *arizona = dev_get_drvdata(codec->dev->parent); | 88 | struct arizona *arizona = dev_get_drvdata(codec->dev->parent); |
89 | struct regmap *regmap = arizona->regmap; | 89 | struct regmap *regmap = arizona->regmap; |
90 | const struct reg_default *patch = NULL; | 90 | const struct reg_default *patch = NULL; |