aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars-Peter Clausen <lars@metafoo.de>2013-08-27 09:50:57 -0400
committerMark Brown <broonie@linaro.org>2013-08-27 10:36:27 -0400
commit318ee162c882526685be4f44d7b519cdcc45cbfe (patch)
treeb23292803c0c38cf5ef7a651e4f47486551ebf8b
parente94a093c1c7a1b06fa574c99f69ed594e0c52ff2 (diff)
ASoC: wm8904: Remove unnecessary call to snd_soc_dapm_new_widgets()
The core will call snd_soc_dapm_new_widgets() once all components of the card have been initialized, so there is no need to do this manually in the driver. Calling it earlier also might result in a partially instantiated system being powered up which cause undesired side effects. Signed-off-by: Lars-Peter Clausen <lars@metafoo.de> Signed-off-by: Mark Brown <broonie@linaro.org>
-rw-r--r--sound/soc/codecs/wm8904.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/sound/soc/codecs/wm8904.c b/sound/soc/codecs/wm8904.c
index 91dfbfeda6f8..4dfa8dceeabf 100644
--- a/sound/soc/codecs/wm8904.c
+++ b/sound/soc/codecs/wm8904.c
@@ -1202,7 +1202,6 @@ static int wm8904_add_widgets(struct snd_soc_codec *codec)
1202 break; 1202 break;
1203 } 1203 }
1204 1204
1205 snd_soc_dapm_new_widgets(dapm);
1206 return 0; 1205 return 0;
1207} 1206}
1208 1207