提交 28d528c8 编写于 作者: M Mark Brown

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: NMark Brown <broonie@opensource.wolfsonmicro.com>
上级 10884347
......@@ -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)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册