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: Jarkko Nikula <jhnikula@gmail.com> Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Signed-off-by: Liam Girdwood <lrg@slimlogic.co.uk>
This commit is contained in:
committed by
Liam Girdwood
parent
ad5e4655f9
commit
ec588ae6c2
@@ -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);
|
||||
|
Reference in New Issue
Block a user