From 14ac91126b02cfe39f2bbda40fcbd94923bfabbb Mon Sep 17 00:00:00 2001 From: Liam Girdwood Date: Mon, 6 Feb 2012 16:50:58 +0000 Subject: [PATCH] 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 Signed-off-by: Mark Brown --- sound/soc/codecs/max9768.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) } 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; -- 2.30.2