summaryrefslogtreecommitdiff
path: root/sound/soc/soc-core.c
diff options
context:
space:
mode:
authorMark Brown <broonie@opensource.wolfsonmicro.com>2012-08-09 17:45:23 (GMT)
committerMark Brown <broonie@opensource.wolfsonmicro.com>2012-08-09 18:34:28 (GMT)
commit28d528c8dbab5c6b3cf2fc4f0e91470a9a63dbc0 (patch)
treebdad399a0f7c9e2be0e8a291c78e6d6ebb05198a /sound/soc/soc-core.c
parent10884347f18842aa9b8ae18ebb16272d9b7fafa2 (diff)
downloadlinux-fsl-qoriq-28d528c8dbab5c6b3cf2fc4f0e91470a9a63dbc0.tar.xz
ASoC: core: Remove pointless error on card registration failure
If we fail to register the card we should say why somewhere else so there's no point in repeating the same thing with less information. Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound/soc/soc-core.c')
-rw-r--r--sound/soc/soc-core.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/sound/soc/soc-core.c b/sound/soc/soc-core.c
index f10f00b..3a43fa6 100644
--- a/sound/soc/soc-core.c
+++ b/sound/soc/soc-core.c
@@ -1830,13 +1830,7 @@ static int soc_probe(struct platform_device *pdev)
/* Bodge while we unpick instantiation */
card->dev = &pdev->dev;
- ret = snd_soc_register_card(card);
- if (ret != 0) {
- dev_err(&pdev->dev, "Failed to register card\n");
- return ret;
- }
-
- return 0;
+ return snd_soc_register_card(card);
}
static int soc_cleanup_card_resources(struct snd_soc_card *card)