]> Git Repo - linux.git/commitdiff
ASoC: wm8904: Remove unnecessary call to snd_soc_dapm_new_widgets()
authorLars-Peter Clausen <[email protected]>
Tue, 27 Aug 2013 13:50:57 +0000 (15:50 +0200)
committerMark Brown <[email protected]>
Tue, 27 Aug 2013 14:36:27 +0000 (15:36 +0100)
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 <[email protected]>
Signed-off-by: Mark Brown <[email protected]>
sound/soc/codecs/wm8904.c

index 91dfbfeda6f81763c8afff38cc567b93b33bb218..4dfa8dceeabf5725b1cb9dc6c7aab6d0619242e7 100644 (file)
@@ -1202,7 +1202,6 @@ static int wm8904_add_widgets(struct snd_soc_codec *codec)
                break;
        }
 
-       snd_soc_dapm_new_widgets(dapm);
        return 0;
 }
 
This page took 0.057011 seconds and 4 git commands to generate.