diff options
Diffstat (limited to 'sound/soc/codecs/ad1836.c')
-rw-r--r-- | sound/soc/codecs/ad1836.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/sound/soc/codecs/ad1836.c b/sound/soc/codecs/ad1836.c index c48485f2c55d..2c18e3d1b71e 100644 --- a/sound/soc/codecs/ad1836.c +++ b/sound/soc/codecs/ad1836.c | |||
@@ -385,19 +385,7 @@ static int ad1836_probe(struct platform_device *pdev) | |||
385 | snd_soc_dapm_new_controls(codec, ad1836_dapm_widgets, | 385 | snd_soc_dapm_new_controls(codec, ad1836_dapm_widgets, |
386 | ARRAY_SIZE(ad1836_dapm_widgets)); | 386 | ARRAY_SIZE(ad1836_dapm_widgets)); |
387 | snd_soc_dapm_add_routes(codec, audio_paths, ARRAY_SIZE(audio_paths)); | 387 | snd_soc_dapm_add_routes(codec, audio_paths, ARRAY_SIZE(audio_paths)); |
388 | snd_soc_dapm_new_widgets(codec); | ||
389 | 388 | ||
390 | ret = snd_soc_init_card(socdev); | ||
391 | if (ret < 0) { | ||
392 | dev_err(codec->dev, "failed to register card: %d\n", ret); | ||
393 | goto card_err; | ||
394 | } | ||
395 | |||
396 | return ret; | ||
397 | |||
398 | card_err: | ||
399 | snd_soc_free_pcms(socdev); | ||
400 | snd_soc_dapm_free(socdev); | ||
401 | pcm_err: | 389 | pcm_err: |
402 | return ret; | 390 | return ret; |
403 | } | 391 | } |