]> git.karo-electronics.de Git - linux-beck.git/commitdiff
ASoC: Improve error reporting for AC97 reset failures
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Fri, 21 Nov 2008 14:28:49 +0000 (14:28 +0000)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Fri, 21 Nov 2008 14:35:07 +0000 (14:35 +0000)
Print something a bit more verbose to help make errors a little more
obvious.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/codecs/ad1980.c
sound/soc/codecs/wm9712.c
sound/soc/codecs/wm9713.c

index 410fed953c541c32d64844ff74c571a1d2fba8e5..1a3ea059a6dcc14bec1c040a04a40afbb948d4e0 100644 (file)
@@ -238,7 +238,7 @@ static int ad1980_soc_probe(struct platform_device *pdev)
 
        ret = ad1980_reset(codec, 0);
        if (ret < 0) {
-               printk(KERN_ERR "AC97 link error\n");
+               printk(KERN_ERR "Failed to reset AD1980: AC97 link error\n");
                goto reset_err;
        }
 
index 81c38e7ad34424b4b68a631a65a885fb81e1704c..6e3e0f340179dc3b19b2f0bc724060fd415582ca 100644 (file)
@@ -690,7 +690,7 @@ static int wm9712_soc_probe(struct platform_device *pdev)
 
        ret = wm9712_reset(codec, 0);
        if (ret < 0) {
-               printk(KERN_ERR "AC97 link error\n");
+               printk(KERN_ERR "Failed to reset WM9712: AC97 link error\n");
                goto reset_err;
        }
 
index a0cc5ac969a1dc6001b69a84f522baf980576688..7be811a3b02a39339228fc37240c8eb972e403f8 100644 (file)
@@ -1243,7 +1243,7 @@ static int wm9713_soc_probe(struct platform_device *pdev)
        wm9713_reset(codec, 0);
        ret = wm9713_reset(codec, 1);
        if (ret < 0) {
-               printk(KERN_ERR "AC97 link error\n");
+               printk(KERN_ERR "Failed to reset WM9713: AC97 link error\n");
                goto reset_err;
        }