From: David Brownell Date: Fri, 3 Oct 2008 15:11:33 +0000 (-0700) Subject: bugfix: SOUND: SOC: OMAP: Add support for Gumstix Overo X-Git-Tag: v2.6.27-omap1~82 X-Git-Url: http://www.pilppa.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=c2a36cf2ddaa23cbf34a6803773450fe7fadf33e;p=linux-2.6-omap-h63xx.git bugfix: SOUND: SOC: OMAP: Add support for Gumstix Overo Get rid of bogus ASOC boot messages on non-Overo boards, such as with a kernel built for both Overo and Beagle. Signed-off-by: David Brownell Acked-By: Steve Sakoman Signed-off-by: Tony Lindgren --- diff --git a/sound/soc/omap/overo.c b/sound/soc/omap/overo.c index 1a086ced8f1..c26d1de7da5 100644 --- a/sound/soc/omap/overo.c +++ b/sound/soc/omap/overo.c @@ -107,11 +107,11 @@ static int __init overo_soc_init(void) { int ret; - printk(KERN_INFO "overo SoC init\n"); if (!machine_is_overo()) { - printk(KERN_ERR "Not Overo!\n"); + pr_debug("Not Overo!\n"); return -ENODEV; } + printk(KERN_INFO "overo SoC init\n"); overo_snd_device = platform_device_alloc("soc-audio", -1); if (!overo_snd_device) { @@ -135,13 +135,12 @@ err1: return ret; } +module_init(overo_soc_init); static void __exit overo_soc_exit(void) { platform_device_unregister(overo_snd_device); } - -module_init(overo_soc_init); module_exit(overo_soc_exit); MODULE_AUTHOR("Steve Sakoman ");