Skip to content

Commit

Permalink
ASoC: max9768: Fix build and use new add control API.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Liam Girdwood authored and Mark Brown committed Feb 6, 2012
1 parent 24cace3 commit 14ac911
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sound/soc/codecs/max9768.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 14ac911

Please sign in to comment.