ASoC: omap: Remove needless prints from machine drivers
authorJarkko Nikula <jhnikula@gmail.com>
Wed, 6 Oct 2010 13:47:26 +0000 (16:47 +0300)
committerLiam Girdwood <lrg@slimlogic.co.uk>
Sun, 10 Oct 2010 10:37:20 +0000 (11:37 +0100)
It is currently completely normal to execute these machine drivers code on
different boards if the kernel includes support for multiple boards so no
error message should be printed if the machine_is_xxx does not match with
the machine driver.

Therefore remove these pr_err and pr_debug prints in those cases.

Signed-off-by: Jarkko Nikula <jhnikula@gmail.com>
Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Liam Girdwood <lrg@slimlogic.co.uk>
sound/soc/omap/am3517evm.c
sound/soc/omap/igep0020.c
sound/soc/omap/omap2evm.c
sound/soc/omap/omap3beagle.c
sound/soc/omap/omap3evm.c
sound/soc/omap/sdp3430.c
sound/soc/omap/sdp4430.c
sound/soc/omap/zoom2.c

index 68bd902ccd4e392dd96547b1e8e8d735baa3472b..979dd508305f812bc6ad893893ed6e811a8bdf3a 100644 (file)
@@ -157,10 +157,8 @@ static int __init am3517evm_soc_init(void)
 {
        int ret;
 
-       if (!machine_is_omap3517evm()) {
-               pr_err("Not OMAP3517 / AM3517 EVM!\n");
+       if (!machine_is_omap3517evm())
                return -ENODEV;
-       }
        pr_info("OMAP3517 / AM3517 EVM SoC init\n");
 
        am3517evm_snd_device = platform_device_alloc("soc-audio", -1);
index d296cfcc672e0b950a3cb13ac037f9da8c01fbd7..fd3a40f309c8e4d3067ea93ecfebc6ad8f0f4a23 100644 (file)
@@ -101,10 +101,8 @@ static int __init igep2_soc_init(void)
 {
        int ret;
 
-       if (!machine_is_igep0020()) {
-               pr_debug("Not IGEP v2!\n");
+       if (!machine_is_igep0020())
                return -ENODEV;
-       }
        printk(KERN_INFO "IGEP v2 SoC init\n");
 
        igep2_snd_device = platform_device_alloc("soc-audio", -1);
index 38cd1894623e575095c8a4b4e1fc364789dfe00c..cf3fc8a675b5fc504169f35aaf418095d7da71d0 100644 (file)
@@ -103,10 +103,8 @@ static int __init omap2evm_soc_init(void)
 {
        int ret;
 
-       if (!machine_is_omap2evm()) {
-               pr_debug("Not omap2evm!\n");
+       if (!machine_is_omap2evm())
                return -ENODEV;
-       }
        printk(KERN_INFO "omap2evm SoC init\n");
 
        omap2evm_snd_device = platform_device_alloc("soc-audio", -1);
index 7c11e1afe9e640a9e90c006b00fdadb8e4ff5939..e56832b0c444083def074b75f3c788d9c89d07d3 100644 (file)
@@ -112,10 +112,8 @@ static int __init omap3beagle_soc_init(void)
 {
        int ret;
 
-       if (!(machine_is_omap3_beagle() || machine_is_devkit8000())) {
-               pr_debug("Not OMAP3 Beagle or Devkit8000!\n");
+       if (!(machine_is_omap3_beagle() || machine_is_devkit8000()))
                return -ENODEV;
-       }
        pr_info("OMAP3 Beagle/Devkit8000 SoC init\n");
 
        omap3beagle_snd_device = platform_device_alloc("soc-audio", -1);
index 1ac5babef00d32c4cea288452d4f18094a647c08..810f1e36da2127e019570563d8d1d622939a3e48 100644 (file)
@@ -99,10 +99,8 @@ static int __init omap3evm_soc_init(void)
 {
        int ret;
 
-       if (!machine_is_omap3evm()) {
-               pr_err("Not OMAP3 EVM!\n");
+       if (!machine_is_omap3evm())
                return -ENODEV;
-       }
        pr_info("OMAP3 EVM SoC init\n");
 
        omap3evm_snd_device = platform_device_alloc("soc-audio", -1);
index 76ce77b91844871f53481afbab751dc394e51bc8..07fbcf7d2411ea6d0a80f5c390ba629f89a5e2ca 100644 (file)
@@ -296,10 +296,8 @@ static int __init sdp3430_soc_init(void)
        int ret;
        u8 pin_mux;
 
-       if (!machine_is_omap_3430sdp()) {
-               pr_debug("Not SDP3430!\n");
+       if (!machine_is_omap_3430sdp())
                return -ENODEV;
-       }
        printk(KERN_INFO "SDP3430 SoC init\n");
 
        sdp3430_snd_device = platform_device_alloc("soc-audio", -1);
index 62f6a622d79146d24068c76cb63fda6cf03bc347..4b4463db6ba0330a0c29b401083e13cbc671bfd0 100644 (file)
@@ -186,10 +186,8 @@ static int __init sdp4430_soc_init(void)
 {
        int ret;
 
-       if (!machine_is_omap_4430sdp()) {
-               pr_debug("Not SDP4430!\n");
+       if (!machine_is_omap_4430sdp())
                return -ENODEV;
-       }
        printk(KERN_INFO "SDP4430 SoC init\n");
 
        sdp4430_snd_device = platform_device_alloc("soc-audio", -1);
index 338dc9552bd6be7d8bf2f7dee9b5673f86f6198c..718031eeac34805bc16909fd29cb9a87da494a59 100644 (file)
@@ -245,10 +245,8 @@ static int __init zoom2_soc_init(void)
 {
        int ret;
 
-       if (!machine_is_omap_zoom2()) {
-               pr_debug("Not Zoom2!\n");
+       if (!machine_is_omap_zoom2())
                return -ENODEV;
-       }
        printk(KERN_INFO "Zoom2 SoC init\n");
 
        zoom2_snd_device = platform_device_alloc("soc-audio", -1);