diff options
Diffstat (limited to 'sound/soc/codecs/ak4671.c')
-rw-r--r-- | sound/soc/codecs/ak4671.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/sound/soc/codecs/ak4671.c b/sound/soc/codecs/ak4671.c index b61214d1c5de..364832ccd748 100644 --- a/sound/soc/codecs/ak4671.c +++ b/sound/soc/codecs/ak4671.c | |||
@@ -662,19 +662,10 @@ static int ak4671_probe(struct platform_device *pdev) | |||
662 | ARRAY_SIZE(ak4671_snd_controls)); | 662 | ARRAY_SIZE(ak4671_snd_controls)); |
663 | ak4671_add_widgets(codec); | 663 | ak4671_add_widgets(codec); |
664 | 664 | ||
665 | ret = snd_soc_init_card(socdev); | ||
666 | if (ret < 0) { | ||
667 | dev_err(codec->dev, "failed to register card: %d\n", ret); | ||
668 | goto card_err; | ||
669 | } | ||
670 | |||
671 | ak4671_set_bias_level(codec, SND_SOC_BIAS_STANDBY); | 665 | ak4671_set_bias_level(codec, SND_SOC_BIAS_STANDBY); |
672 | 666 | ||
673 | return ret; | 667 | return ret; |
674 | 668 | ||
675 | card_err: | ||
676 | snd_soc_free_pcms(socdev); | ||
677 | snd_soc_dapm_free(socdev); | ||
678 | pcm_err: | 669 | pcm_err: |
679 | return ret; | 670 | return ret; |
680 | } | 671 | } |