diff options
Diffstat (limited to 'sound/soc/codecs/wm8741.c')
-rw-r--r-- | sound/soc/codecs/wm8741.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sound/soc/codecs/wm8741.c b/sound/soc/codecs/wm8741.c index 90e31e9aa6f7..43c49dfc9928 100644 --- a/sound/soc/codecs/wm8741.c +++ b/sound/soc/codecs/wm8741.c | |||
@@ -95,10 +95,11 @@ static const struct snd_soc_dapm_route intercon[] = { | |||
95 | 95 | ||
96 | static int wm8741_add_widgets(struct snd_soc_codec *codec) | 96 | static int wm8741_add_widgets(struct snd_soc_codec *codec) |
97 | { | 97 | { |
98 | snd_soc_dapm_new_controls(codec, wm8741_dapm_widgets, | 98 | struct snd_soc_dapm_context *dapm = &codec->dapm; |
99 | ARRAY_SIZE(wm8741_dapm_widgets)); | ||
100 | 99 | ||
101 | snd_soc_dapm_add_routes(codec, intercon, ARRAY_SIZE(intercon)); | 100 | snd_soc_dapm_new_controls(dapm, wm8741_dapm_widgets, |
101 | ARRAY_SIZE(wm8741_dapm_widgets)); | ||
102 | snd_soc_dapm_add_routes(dapm, intercon, ARRAY_SIZE(intercon)); | ||
102 | 103 | ||
103 | return 0; | 104 | return 0; |
104 | } | 105 | } |