diff options
Diffstat (limited to 'sound/soc/codecs/wm8971.c')
-rw-r--r-- | sound/soc/codecs/wm8971.c | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/sound/soc/codecs/wm8971.c b/sound/soc/codecs/wm8971.c index d66efb0546ea..d9540d55fc89 100644 --- a/sound/soc/codecs/wm8971.c +++ b/sound/soc/codecs/wm8971.c | |||
@@ -338,8 +338,6 @@ static int wm8971_add_widgets(struct snd_soc_codec *codec) | |||
338 | 338 | ||
339 | snd_soc_dapm_add_routes(codec, audio_map, ARRAY_SIZE(audio_map)); | 339 | snd_soc_dapm_add_routes(codec, audio_map, ARRAY_SIZE(audio_map)); |
340 | 340 | ||
341 | snd_soc_dapm_new_widgets(codec); | ||
342 | |||
343 | return 0; | 341 | return 0; |
344 | } | 342 | } |
345 | 343 | ||
@@ -703,16 +701,9 @@ static int wm8971_init(struct snd_soc_device *socdev, | |||
703 | snd_soc_add_controls(codec, wm8971_snd_controls, | 701 | snd_soc_add_controls(codec, wm8971_snd_controls, |
704 | ARRAY_SIZE(wm8971_snd_controls)); | 702 | ARRAY_SIZE(wm8971_snd_controls)); |
705 | wm8971_add_widgets(codec); | 703 | wm8971_add_widgets(codec); |
706 | ret = snd_soc_init_card(socdev); | 704 | |
707 | if (ret < 0) { | ||
708 | printk(KERN_ERR "wm8971: failed to register card\n"); | ||
709 | goto card_err; | ||
710 | } | ||
711 | return ret; | 705 | return ret; |
712 | 706 | ||
713 | card_err: | ||
714 | snd_soc_free_pcms(socdev); | ||
715 | snd_soc_dapm_free(socdev); | ||
716 | err: | 707 | err: |
717 | kfree(codec->reg_cache); | 708 | kfree(codec->reg_cache); |
718 | return ret; | 709 | return ret; |