diff options
author | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2010-09-21 10:09:37 -0400 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2010-09-22 11:40:15 -0400 |
commit | 321de0d05a4bbe0ee74d473e00d7947851bf5284 (patch) | |
tree | 4aa3d14ddd773a246caeb6ddce2aa7fffd123e5a /sound/soc | |
parent | 0704129ff4e51402bf7b16064a54ff8f7889e962 (diff) |
ASoC: Report error codes for card DAI instantiation failures
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>
Diffstat (limited to 'sound/soc')
-rw-r--r-- | sound/soc/soc-core.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sound/soc/soc-core.c b/sound/soc/soc-core.c index e9968ffecd1c..8751efdea119 100644 --- a/sound/soc/soc-core.c +++ b/sound/soc/soc-core.c | |||
@@ -1566,7 +1566,8 @@ static void snd_soc_instantiate_card(struct snd_soc_card *card) | |||
1566 | for (i = 0; i < card->num_links; i++) { | 1566 | for (i = 0; i < card->num_links; i++) { |
1567 | ret = soc_probe_dai_link(card, i); | 1567 | ret = soc_probe_dai_link(card, i); |
1568 | if (ret < 0) { | 1568 | if (ret < 0) { |
1569 | printk(KERN_ERR "asoc: failed to instanciate card %s\n", card->name); | 1569 | pr_err("asoc: failed to instantiate card %s: %d\n", |
1570 | card->name, ret); | ||
1570 | goto probe_dai_err; | 1571 | goto probe_dai_err; |
1571 | } | 1572 | } |
1572 | } | 1573 | } |