Commit ec588ae6 authored by Jarkko Nikula's avatar Jarkko Nikula Committed by Liam Girdwood

ASoC: omap: Remove needless prints from machine drivers

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: default avatarJarkko Nikula <jhnikula@gmail.com>
Acked-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: default avatarLiam Girdwood <lrg@slimlogic.co.uk>
parent ad5e4655
...@@ -157,10 +157,8 @@ static int __init am3517evm_soc_init(void) ...@@ -157,10 +157,8 @@ static int __init am3517evm_soc_init(void)
{ {
int ret; int ret;
if (!machine_is_omap3517evm()) { if (!machine_is_omap3517evm())
pr_err("Not OMAP3517 / AM3517 EVM!\n");
return -ENODEV; return -ENODEV;
}
pr_info("OMAP3517 / AM3517 EVM SoC init\n"); pr_info("OMAP3517 / AM3517 EVM SoC init\n");
am3517evm_snd_device = platform_device_alloc("soc-audio", -1); am3517evm_snd_device = platform_device_alloc("soc-audio", -1);
......
...@@ -101,10 +101,8 @@ static int __init igep2_soc_init(void) ...@@ -101,10 +101,8 @@ static int __init igep2_soc_init(void)
{ {
int ret; int ret;
if (!machine_is_igep0020()) { if (!machine_is_igep0020())
pr_debug("Not IGEP v2!\n");
return -ENODEV; return -ENODEV;
}
printk(KERN_INFO "IGEP v2 SoC init\n"); printk(KERN_INFO "IGEP v2 SoC init\n");
igep2_snd_device = platform_device_alloc("soc-audio", -1); igep2_snd_device = platform_device_alloc("soc-audio", -1);
......
...@@ -103,10 +103,8 @@ static int __init omap2evm_soc_init(void) ...@@ -103,10 +103,8 @@ static int __init omap2evm_soc_init(void)
{ {
int ret; int ret;
if (!machine_is_omap2evm()) { if (!machine_is_omap2evm())
pr_debug("Not omap2evm!\n");
return -ENODEV; return -ENODEV;
}
printk(KERN_INFO "omap2evm SoC init\n"); printk(KERN_INFO "omap2evm SoC init\n");
omap2evm_snd_device = platform_device_alloc("soc-audio", -1); omap2evm_snd_device = platform_device_alloc("soc-audio", -1);
......
...@@ -112,10 +112,8 @@ static int __init omap3beagle_soc_init(void) ...@@ -112,10 +112,8 @@ static int __init omap3beagle_soc_init(void)
{ {
int ret; int ret;
if (!(machine_is_omap3_beagle() || machine_is_devkit8000())) { if (!(machine_is_omap3_beagle() || machine_is_devkit8000()))
pr_debug("Not OMAP3 Beagle or Devkit8000!\n");
return -ENODEV; return -ENODEV;
}
pr_info("OMAP3 Beagle/Devkit8000 SoC init\n"); pr_info("OMAP3 Beagle/Devkit8000 SoC init\n");
omap3beagle_snd_device = platform_device_alloc("soc-audio", -1); omap3beagle_snd_device = platform_device_alloc("soc-audio", -1);
......
...@@ -99,10 +99,8 @@ static int __init omap3evm_soc_init(void) ...@@ -99,10 +99,8 @@ static int __init omap3evm_soc_init(void)
{ {
int ret; int ret;
if (!machine_is_omap3evm()) { if (!machine_is_omap3evm())
pr_err("Not OMAP3 EVM!\n");
return -ENODEV; return -ENODEV;
}
pr_info("OMAP3 EVM SoC init\n"); pr_info("OMAP3 EVM SoC init\n");
omap3evm_snd_device = platform_device_alloc("soc-audio", -1); omap3evm_snd_device = platform_device_alloc("soc-audio", -1);
......
...@@ -296,10 +296,8 @@ static int __init sdp3430_soc_init(void) ...@@ -296,10 +296,8 @@ static int __init sdp3430_soc_init(void)
int ret; int ret;
u8 pin_mux; u8 pin_mux;
if (!machine_is_omap_3430sdp()) { if (!machine_is_omap_3430sdp())
pr_debug("Not SDP3430!\n");
return -ENODEV; return -ENODEV;
}
printk(KERN_INFO "SDP3430 SoC init\n"); printk(KERN_INFO "SDP3430 SoC init\n");
sdp3430_snd_device = platform_device_alloc("soc-audio", -1); sdp3430_snd_device = platform_device_alloc("soc-audio", -1);
......
...@@ -186,10 +186,8 @@ static int __init sdp4430_soc_init(void) ...@@ -186,10 +186,8 @@ static int __init sdp4430_soc_init(void)
{ {
int ret; int ret;
if (!machine_is_omap_4430sdp()) { if (!machine_is_omap_4430sdp())
pr_debug("Not SDP4430!\n");
return -ENODEV; return -ENODEV;
}
printk(KERN_INFO "SDP4430 SoC init\n"); printk(KERN_INFO "SDP4430 SoC init\n");
sdp4430_snd_device = platform_device_alloc("soc-audio", -1); sdp4430_snd_device = platform_device_alloc("soc-audio", -1);
......
...@@ -245,10 +245,8 @@ static int __init zoom2_soc_init(void) ...@@ -245,10 +245,8 @@ static int __init zoom2_soc_init(void)
{ {
int ret; int ret;
if (!machine_is_omap_zoom2()) { if (!machine_is_omap_zoom2())
pr_debug("Not Zoom2!\n");
return -ENODEV; return -ENODEV;
}
printk(KERN_INFO "Zoom2 SoC init\n"); printk(KERN_INFO "Zoom2 SoC init\n");
zoom2_snd_device = platform_device_alloc("soc-audio", -1); zoom2_snd_device = platform_device_alloc("soc-audio", -1);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment