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 <dbrownell@users.sourceforge.net>
Acked-By: Steve Sakoman <steve@sakoman.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
{
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) {
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 <steve@sakoman.com>");