omap2/3: Fix initcalls for multi-omap
Otherwise the wrong initcalls can run. Signed-off-by: Tony Lindgren <tony@atomide.com>
This commit is contained in:
@@ -56,6 +56,9 @@ static struct amba_device omap3_etm_device = {
|
||||
|
||||
static int __init emu_init(void)
|
||||
{
|
||||
if (!cpu_is_omap34xx())
|
||||
return -ENODEV;
|
||||
|
||||
amba_device_register(&omap3_etb_device, &iomem_resource);
|
||||
amba_device_register(&omap3_etm_device, &iomem_resource);
|
||||
|
||||
|
Reference in New Issue
Block a user