diff options
Diffstat (limited to 'sound/soc/codecs/ssm2602.c')
-rw-r--r-- | sound/soc/codecs/ssm2602.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/sound/soc/codecs/ssm2602.c b/sound/soc/codecs/ssm2602.c index c550750c79c0..b3130339d29a 100644 --- a/sound/soc/codecs/ssm2602.c +++ b/sound/soc/codecs/ssm2602.c | |||
@@ -613,17 +613,9 @@ static int ssm2602_init(struct snd_soc_device *socdev) | |||
613 | snd_soc_add_controls(codec, ssm2602_snd_controls, | 613 | snd_soc_add_controls(codec, ssm2602_snd_controls, |
614 | ARRAY_SIZE(ssm2602_snd_controls)); | 614 | ARRAY_SIZE(ssm2602_snd_controls)); |
615 | ssm2602_add_widgets(codec); | 615 | ssm2602_add_widgets(codec); |
616 | ret = snd_soc_init_card(socdev); | ||
617 | if (ret < 0) { | ||
618 | pr_err("ssm2602: failed to register card\n"); | ||
619 | goto card_err; | ||
620 | } | ||
621 | 616 | ||
622 | return ret; | 617 | return ret; |
623 | 618 | ||
624 | card_err: | ||
625 | snd_soc_free_pcms(socdev); | ||
626 | snd_soc_dapm_free(socdev); | ||
627 | pcm_err: | 619 | pcm_err: |
628 | kfree(codec->reg_cache); | 620 | kfree(codec->reg_cache); |
629 | return ret; | 621 | return ret; |