Commit 321de0d0 authored by Mark Brown's avatar Mark Brown

ASoC: Report error codes for card DAI instantiation failures

Also clean up the error print a bit.
Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
Acked-by: default avatarLiam Girdwood <lrg@slimlogic.co.uk>
parent 0704129f
...@@ -1566,7 +1566,8 @@ static void snd_soc_instantiate_card(struct snd_soc_card *card) ...@@ -1566,7 +1566,8 @@ static void snd_soc_instantiate_card(struct snd_soc_card *card)
for (i = 0; i < card->num_links; i++) { for (i = 0; i < card->num_links; i++) {
ret = soc_probe_dai_link(card, i); ret = soc_probe_dai_link(card, i);
if (ret < 0) { if (ret < 0) {
printk(KERN_ERR "asoc: failed to instanciate card %s\n", card->name); pr_err("asoc: failed to instantiate card %s: %d\n",
card->name, ret);
goto probe_dai_err; goto probe_dai_err;
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment