]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
ASoC: Improve diagnostics for AT91SAM9G20-EK probe
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Mon, 16 Feb 2009 13:38:11 +0000 (13:38 +0000)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Wed, 18 Feb 2009 11:25:21 +0000 (11:25 +0000)
We should display an error by default if we fail to register.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/atmel/sam9g20_wm8731.c

index 6ea04be911d0646a83436c986144db12ff4943d2..be3f923d3c4371b6a13c2100a656687443065605 100644 (file)
@@ -273,6 +273,7 @@ static int __init at91sam9g20ek_init(void)
         */
        ssc = ssc_request(0);
        if (IS_ERR(ssc)) {
+               printk(KERN_ERR "ASoC: Failed to request SSC 0\n");
                ret = PTR_ERR(ssc);
                ssc = NULL;
                goto err_ssc;
@@ -281,8 +282,7 @@ static int __init at91sam9g20ek_init(void)
 
        at91sam9g20ek_snd_device = platform_device_alloc("soc-audio", -1);
        if (!at91sam9g20ek_snd_device) {
-               printk(KERN_DEBUG
-                               "platform device allocation failed\n");
+               printk(KERN_ERR "ASoC: Platform device allocation failed\n");
                ret = -ENOMEM;
        }
 
@@ -292,8 +292,7 @@ static int __init at91sam9g20ek_init(void)
 
        ret = platform_device_add(at91sam9g20ek_snd_device);
        if (ret) {
-               printk(KERN_DEBUG
-                               "platform device allocation failed\n");
+               printk(KERN_ERR "ASoC: Platform device allocation failed\n");
                platform_device_put(at91sam9g20ek_snd_device);
        }