[PATCH] ASoC: max9768 - Fix build and use new add control API.

From: Liam Girdwood
Date: Mon Feb 06 2012 - 11:36:04 EST


Fix build breakage by using the correct API call to add kcontrols.

Signed-off-by: Liam Girdwood <lrg@xxxxxx>
---
sound/soc/codecs/max9768.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/sound/soc/codecs/max9768.c b/sound/soc/codecs/max9768.c
index 79e9901..17b3ec2 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)
}

if (gpio_is_valid(max9768->mute_gpio)) {
- ret = snd_soc_add_controls(codec, max9768_mute,
+ ret = snd_soc_add_codec_controls(codec, max9768_mute,
ARRAY_SIZE(max9768_mute));
if (ret)
return ret;
--
1.7.5.4


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/