aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs/wm2000.c
diff options
context:
space:
mode:
Diffstat (limited to 'sound/soc/codecs/wm2000.c')
-rw-r--r--sound/soc/codecs/wm2000.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sound/soc/codecs/wm2000.c b/sound/soc/codecs/wm2000.c
index 4bcd168794e1..9277d8d7474e 100644
--- a/sound/soc/codecs/wm2000.c
+++ b/sound/soc/codecs/wm2000.c
@@ -705,6 +705,7 @@ static const struct snd_soc_dapm_route audio_map[] = {
705/* Called from the machine driver */ 705/* Called from the machine driver */
706int wm2000_add_controls(struct snd_soc_codec *codec) 706int wm2000_add_controls(struct snd_soc_codec *codec)
707{ 707{
708 struct snd_soc_dapm_context *dapm = &codec->dapm;
708 int ret; 709 int ret;
709 710
710 if (!wm2000_i2c) { 711 if (!wm2000_i2c) {
@@ -712,12 +713,12 @@ int wm2000_add_controls(struct snd_soc_codec *codec)
712 return -ENODEV; 713 return -ENODEV;
713 } 714 }
714 715
715 ret = snd_soc_dapm_new_controls(codec, wm2000_dapm_widgets, 716 ret = snd_soc_dapm_new_controls(dapm, wm2000_dapm_widgets,
716 ARRAY_SIZE(wm2000_dapm_widgets)); 717 ARRAY_SIZE(wm2000_dapm_widgets));
717 if (ret < 0) 718 if (ret < 0)
718 return ret; 719 return ret;
719 720
720 ret = snd_soc_dapm_add_routes(codec, audio_map, ARRAY_SIZE(audio_map)); 721 ret = snd_soc_dapm_add_routes(dapm, audio_map, ARRAY_SIZE(audio_map));
721 if (ret < 0) 722 if (ret < 0)
722 return ret; 723 return ret;
723 724