1
0
Fork 0

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>
hifive-unleashed-5.1
Mark Brown 2012-08-09 18:45:23 +01:00
parent 10884347f1
commit 28d528c8db
1 changed files with 1 additions and 7 deletions

View File

@ -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)