aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs/max9768.c
diff options
context:
space:
mode:
authorLiam Girdwood <lrg@ti.com>2012-02-06 11:50:58 -0500
committerMark Brown <broonie@opensource.wolfsonmicro.com>2012-02-06 11:52:16 -0500
commit14ac91126b02cfe39f2bbda40fcbd94923bfabbb (patch)
tree22769d0d867152ea0639c39708f258465efba837 /sound/soc/codecs/max9768.c
parent24cace30c527c1dcbaddb738d9ee39a8ef491818 (diff)
ASoC: max9768: Fix build and use new add control API.
Fix build breakage by using the correct API call to add kcontrols. Signed-off-by: Liam Girdwood <lrg@ti.com> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound/soc/codecs/max9768.c')
-rw-r--r--sound/soc/codecs/max9768.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/codecs/max9768.c b/sound/soc/codecs/max9768.c
index 79e990185914..17b3ec2d05cb 100644
--- a/sound/soc/codecs/max9768.c
+++ b/sound/soc/codecs/max9768.c
@@ -135,7 +135,7 @@ static int max9768_probe(struct snd_soc_codec *codec)
135 } 135 }
136 136
137 if (gpio_is_valid(max9768->mute_gpio)) { 137 if (gpio_is_valid(max9768->mute_gpio)) {
138 ret = snd_soc_add_controls(codec, max9768_mute, 138 ret = snd_soc_add_codec_controls(codec, max9768_mute,
139 ARRAY_SIZE(max9768_mute)); 139 ARRAY_SIZE(max9768_mute));
140 if (ret) 140 if (ret)
141 return ret; 141 return ret;