ASoC: max9768: Fix build and use new add control API.
[firefly-linux-kernel-4.4.55.git] / sound / soc / codecs / max9768.c
index 79e99018591470601e13277a5b5168417504234c..17b3ec2d05cb1ebade50fe27eb95b4a62dfbfc20 100644 (file)
@@ -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;