diff options
Diffstat (limited to 'sound/soc/codecs/cx20442.c')
-rw-r--r-- | sound/soc/codecs/cx20442.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/sound/soc/codecs/cx20442.c b/sound/soc/codecs/cx20442.c index 38eac9c866e1..e000cdfec1ec 100644 --- a/sound/soc/codecs/cx20442.c +++ b/sound/soc/codecs/cx20442.c | |||
@@ -93,7 +93,6 @@ static int cx20442_add_widgets(struct snd_soc_codec *codec) | |||
93 | snd_soc_dapm_add_routes(codec, cx20442_audio_map, | 93 | snd_soc_dapm_add_routes(codec, cx20442_audio_map, |
94 | ARRAY_SIZE(cx20442_audio_map)); | 94 | ARRAY_SIZE(cx20442_audio_map)); |
95 | 95 | ||
96 | snd_soc_dapm_new_widgets(codec); | ||
97 | return 0; | 96 | return 0; |
98 | } | 97 | } |
99 | 98 | ||
@@ -355,17 +354,6 @@ static int cx20442_codec_probe(struct platform_device *pdev) | |||
355 | 354 | ||
356 | cx20442_add_widgets(codec); | 355 | cx20442_add_widgets(codec); |
357 | 356 | ||
358 | ret = snd_soc_init_card(socdev); | ||
359 | if (ret < 0) { | ||
360 | dev_err(&pdev->dev, "failed to register card\n"); | ||
361 | goto card_err; | ||
362 | } | ||
363 | |||
364 | return ret; | ||
365 | |||
366 | card_err: | ||
367 | snd_soc_free_pcms(socdev); | ||
368 | snd_soc_dapm_free(socdev); | ||
369 | pcm_err: | 357 | pcm_err: |
370 | return ret; | 358 | return ret; |
371 | } | 359 | } |