ASoC: jack: Remove unnecessary call to snd_soc_dapm_new_widgets()
authorLars-Peter Clausen <lars@metafoo.de>
Tue, 27 Aug 2013 13:50:58 +0000 (15:50 +0200)
committerMark Brown <broonie@linaro.org>
Tue, 27 Aug 2013 14:37:33 +0000 (15:37 +0100)
snd_soc_jack_add_pins() does not create any new DAPM widgets, so there is no
need to call snd_soc_dapm_new_widgets().

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Mark Brown <broonie@linaro.org>
sound/soc/soc-jack.c

index 7aa26b5178aa60ac68d7f2c281b515ecf35ef979..71358e3b54d93ef10c3e402d98f66773b81d27fc 100644 (file)
@@ -183,8 +183,6 @@ int snd_soc_jack_add_pins(struct snd_soc_jack *jack, int count,
                list_add(&(pins[i].list), &jack->pins);
        }
 
-       snd_soc_dapm_new_widgets(&jack->codec->card->dapm);
-
        /* Update to reflect the last reported status; canned jack
         * implementations are likely to set their state before the
         * card has an opportunity to associate pins.