diff options
Diffstat (limited to 'sound/soc/codecs/wm8940.c')
-rw-r--r-- | sound/soc/codecs/wm8940.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sound/soc/codecs/wm8940.c b/sound/soc/codecs/wm8940.c index 2cb16f895c46..c2def1b01ae0 100644 --- a/sound/soc/codecs/wm8940.c +++ b/sound/soc/codecs/wm8940.c | |||
@@ -291,13 +291,14 @@ static const struct snd_soc_dapm_route audio_map[] = { | |||
291 | 291 | ||
292 | static int wm8940_add_widgets(struct snd_soc_codec *codec) | 292 | static int wm8940_add_widgets(struct snd_soc_codec *codec) |
293 | { | 293 | { |
294 | struct snd_soc_dapm_context *dapm = &codec->dapm; | ||
294 | int ret; | 295 | int ret; |
295 | 296 | ||
296 | ret = snd_soc_dapm_new_controls(codec, wm8940_dapm_widgets, | 297 | ret = snd_soc_dapm_new_controls(dapm, wm8940_dapm_widgets, |
297 | ARRAY_SIZE(wm8940_dapm_widgets)); | 298 | ARRAY_SIZE(wm8940_dapm_widgets)); |
298 | if (ret) | 299 | if (ret) |
299 | goto error_ret; | 300 | goto error_ret; |
300 | ret = snd_soc_dapm_add_routes(codec, audio_map, ARRAY_SIZE(audio_map)); | 301 | ret = snd_soc_dapm_add_routes(dapm, audio_map, ARRAY_SIZE(audio_map)); |
301 | if (ret) | 302 | if (ret) |
302 | goto error_ret; | 303 | goto error_ret; |
303 | 304 | ||