ASoC: Report error codes for card DAI instantiation failures
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Tue, 21 Sep 2010 14:09:37 +0000 (15:09 +0100)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Wed, 22 Sep 2010 15:40:15 +0000 (16:40 +0100)
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>
sound/soc/soc-core.c

index e9968ffecd1c5331705b10f13bc5ccc1dd8e42ba..8751efdea119da1e69fa98f7e20a217c52579f09 100644 (file)
@@ -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;
                }
        }