diff options
Diffstat (limited to 'sound/soc/codecs/wm9705.c')
-rw-r--r-- | sound/soc/codecs/wm9705.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sound/soc/codecs/wm9705.c b/sound/soc/codecs/wm9705.c index a144acda751c..58d120824498 100644 --- a/sound/soc/codecs/wm9705.c +++ b/sound/soc/codecs/wm9705.c | |||
@@ -203,9 +203,11 @@ static const struct snd_soc_dapm_route audio_map[] = { | |||
203 | 203 | ||
204 | static int wm9705_add_widgets(struct snd_soc_codec *codec) | 204 | static int wm9705_add_widgets(struct snd_soc_codec *codec) |
205 | { | 205 | { |
206 | snd_soc_dapm_new_controls(codec, wm9705_dapm_widgets, | 206 | struct snd_soc_dapm_context *dapm = &codec->dapm; |
207 | |||
208 | snd_soc_dapm_new_controls(dapm, wm9705_dapm_widgets, | ||
207 | ARRAY_SIZE(wm9705_dapm_widgets)); | 209 | ARRAY_SIZE(wm9705_dapm_widgets)); |
208 | snd_soc_dapm_add_routes(codec, audio_map, ARRAY_SIZE(audio_map)); | 210 | snd_soc_dapm_add_routes(dapm, audio_map, ARRAY_SIZE(audio_map)); |
209 | 211 | ||
210 | return 0; | 212 | return 0; |
211 | } | 213 | } |