diff options
Diffstat (limited to 'sound/soc/codecs/wm8993.c')
-rw-r--r-- | sound/soc/codecs/wm8993.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sound/soc/codecs/wm8993.c b/sound/soc/codecs/wm8993.c index 056aef904347..9e5ff789b805 100644 --- a/sound/soc/codecs/wm8993.c +++ b/sound/soc/codecs/wm8993.c | |||
@@ -718,7 +718,8 @@ static int clk_sys_event(struct snd_soc_dapm_widget *w, | |||
718 | static int class_w_put(struct snd_kcontrol *kcontrol, | 718 | static int class_w_put(struct snd_kcontrol *kcontrol, |
719 | struct snd_ctl_elem_value *ucontrol) | 719 | struct snd_ctl_elem_value *ucontrol) |
720 | { | 720 | { |
721 | struct snd_soc_dapm_widget *widget = snd_kcontrol_chip(kcontrol); | 721 | struct snd_soc_dapm_widget_list *wlist = snd_kcontrol_chip(kcontrol); |
722 | struct snd_soc_dapm_widget *widget = wlist->widgets[0]; | ||
722 | struct snd_soc_codec *codec = widget->codec; | 723 | struct snd_soc_codec *codec = widget->codec; |
723 | struct wm8993_priv *wm8993 = snd_soc_codec_get_drvdata(codec); | 724 | struct wm8993_priv *wm8993 = snd_soc_codec_get_drvdata(codec); |
724 | int ret; | 725 | int ret; |