summaryrefslogtreecommitdiffstats
path: root/sound/soc/soc-core.c
diff options
context:
space:
mode:
authorMark Brown <broonie@opensource.wolfsonmicro.com>2012-08-09 19:45:23 +0200
committerMark Brown <broonie@opensource.wolfsonmicro.com>2012-08-09 20:34:28 +0200
commit28d528c8dbab5c6b3cf2fc4f0e91470a9a63dbc0 (patch)
treebdad399a0f7c9e2be0e8a291c78e6d6ebb05198a /sound/soc/soc-core.c
parentASoC: McASP: Convert driver to use Runtime PM API (diff)
downloadlinux-28d528c8dbab5c6b3cf2fc4f0e91470a9a63dbc0.tar.xz
linux-28d528c8dbab5c6b3cf2fc4f0e91470a9a63dbc0.zip
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 f10f00b5d29f..3a43fa6ba2ee 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)