Message ID | BANLkTinkZZwPG6S2goLYhuNV8JcVB-xsFw@mail.gmail.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/arch/arm/mach-omap2/devices.c b/arch/arm/mach-omap2/devices.c index 7b85585..c20a3a3 100644 --- a/arch/arm/mach-omap2/devices.c +++ b/arch/arm/mach-omap2/devices.c @@ -410,9 +410,12 @@ static void omap_init_pmu(void) { if (cpu_is_omap24xx()) omap_pmu_device.resource = &omap2_pmu_resource; - else if (cpu_is_omap34xx()) + else if (cpu_is_omap34xx()) { omap_pmu_device.resource = &omap3_pmu_resource; - else +#ifndef CONFIG_OMAP3_EMU + return; +#endif + } else return; platform_device_register(&omap_pmu_device);