diff options
author | Lars-Peter Clausen <lars@metafoo.de> | 2013-08-27 09:50:58 -0400 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2013-08-27 10:37:33 -0400 |
commit | 148663074c1778d88c9e9c5f5cc66493ed30fa25 (patch) | |
tree | caf7ae7e3fb5d6beaf8869cfa0f41ac42fbf4c8a /sound/soc/soc-jack.c | |
parent | c445be35956b0cefe85db75d1e7994af5cecf16a (diff) |
ASoC: jack: Remove unnecessary call to snd_soc_dapm_new_widgets()
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>
Diffstat (limited to 'sound/soc/soc-jack.c')
-rw-r--r-- | sound/soc/soc-jack.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/sound/soc/soc-jack.c b/sound/soc/soc-jack.c index 7aa26b5178aa..71358e3b54d9 100644 --- a/sound/soc/soc-jack.c +++ b/sound/soc/soc-jack.c | |||
@@ -183,8 +183,6 @@ int snd_soc_jack_add_pins(struct snd_soc_jack *jack, int count, | |||
183 | list_add(&(pins[i].list), &jack->pins); | 183 | list_add(&(pins[i].list), &jack->pins); |
184 | } | 184 | } |
185 | 185 | ||
186 | snd_soc_dapm_new_widgets(&jack->codec->card->dapm); | ||
187 | |||
188 | /* Update to reflect the last reported status; canned jack | 186 | /* Update to reflect the last reported status; canned jack |
189 | * implementations are likely to set their state before the | 187 | * implementations are likely to set their state before the |
190 | * card has an opportunity to associate pins. | 188 | * card has an opportunity to associate pins. |