]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ASoC: Remove unreferenced wm8974_add_controls()
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Mon, 29 Jun 2009 13:56:01 +0000 (14:56 +0100)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Mon, 29 Jun 2009 15:14:19 +0000 (16:14 +0100)
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/codecs/wm8974.c

index 397432a736ef057a95ad5422af5a1ab4c4741e89..d2a36ad256c52a15d19cd5aa424f6b73276a3db7 100644 (file)
@@ -205,22 +205,6 @@ SOC_SINGLE("Capture Boost(+20dB)", WM8974_ADCBOOST,  8, 1, 0),
 SOC_SINGLE("Mono Playback Switch", WM8974_MONOMIX, 6, 1, 0),
 };
 
-/* add non dapm controls */
-static int wm8974_add_controls(struct snd_soc_codec *codec)
-{
-       int err, i;
-
-       for (i = 0; i < ARRAY_SIZE(wm8974_snd_controls); i++) {
-               err = snd_ctl_add(codec->card,
-                                 snd_soc_cnew(&wm8974_snd_controls[i],
-                                              codec, NULL));
-               if (err < 0)
-                       return err;
-       }
-
-       return 0;
-}
-
 /* Speaker Output Mixer */
 static const struct snd_kcontrol_new wm8974_speaker_mixer_controls[] = {
 SOC_DAPM_SINGLE("Line Bypass Switch", WM8974_SPKMIX, 1, 1, 0),