Skip to content

Commit

Permalink
ASoC: Report error codes for card DAI instantiation failures
Browse files Browse the repository at this point in the history
Also clean up the error print a bit.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Acked-by: Liam Girdwood <lrg@slimlogic.co.uk>
  • Loading branch information
Mark Brown committed Sep 22, 2010
1 parent 0704129 commit 321de0d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sound/soc/soc-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -1566,7 +1566,8 @@ static void snd_soc_instantiate_card(struct snd_soc_card *card)
for (i = 0; i < card->num_links; i++) {
ret = soc_probe_dai_link(card, i);
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;
}
}
Expand Down

0 comments on commit 321de0d

Please sign in to comment.