mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-26 19:00:25 +00:00
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>
This commit is contained in:
parent
24cace30c5
commit
14ac91126b
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue