Commit c2a36cf2 authored by David Brownell's avatar David Brownell Committed by Tony Lindgren

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: default avatarDavid Brownell <dbrownell@users.sourceforge.net>
Acked-By: default avatarSteve Sakoman <steve@sakoman.com>
Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
parent d0d7d63c
...@@ -107,11 +107,11 @@ static int __init overo_soc_init(void) ...@@ -107,11 +107,11 @@ static int __init overo_soc_init(void)
{ {
int ret; int ret;
printk(KERN_INFO "overo SoC init\n");
if (!machine_is_overo()) { if (!machine_is_overo()) {
printk(KERN_ERR "Not Overo!\n"); pr_debug("Not Overo!\n");
return -ENODEV; return -ENODEV;
} }
printk(KERN_INFO "overo SoC init\n");
overo_snd_device = platform_device_alloc("soc-audio", -1); overo_snd_device = platform_device_alloc("soc-audio", -1);
if (!overo_snd_device) { if (!overo_snd_device) {
...@@ -135,13 +135,12 @@ err1: ...@@ -135,13 +135,12 @@ err1:
return ret; return ret;
} }
module_init(overo_soc_init);
static void __exit overo_soc_exit(void) static void __exit overo_soc_exit(void)
{ {
platform_device_unregister(overo_snd_device); platform_device_unregister(overo_snd_device);
} }
module_init(overo_soc_init);
module_exit(overo_soc_exit); module_exit(overo_soc_exit);
MODULE_AUTHOR("Steve Sakoman <steve@sakoman.com>"); MODULE_AUTHOR("Steve Sakoman <steve@sakoman.com>");
......
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