summaryrefslogtreecommitdiffstats
path: root/sound/soc/omap/omap3beagle.c
diff options
context:
space:
mode:
authorJarkko Nikula <jhnikula@gmail.com>2010-10-06 15:47:26 +0200
committerLiam Girdwood <lrg@slimlogic.co.uk>2010-10-10 12:37:20 +0200
commitec588ae6c21ae20a22ce13a287728a220935b8ee (patch)
treea56583b15d0568793c5622b8e265f013fc8eb676 /sound/soc/omap/omap3beagle.c
parentASoC: remove duplicated include for nuc900 (diff)
downloadlinux-ec588ae6c21ae20a22ce13a287728a220935b8ee.tar.xz
linux-ec588ae6c21ae20a22ce13a287728a220935b8ee.zip
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>
Diffstat (limited to 'sound/soc/omap/omap3beagle.c')
-rw-r--r--sound/soc/omap/omap3beagle.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/sound/soc/omap/omap3beagle.c b/sound/soc/omap/omap3beagle.c
index 7c11e1afe9e6..e56832b0c444 100644
--- a/sound/soc/omap/omap3beagle.c
+++ b/sound/soc/omap/omap3beagle.c
@@ -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);