summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap2/devices.c
diff options
context:
space:
mode:
authorJarkko Nikula <jhnikula@gmail.com>2009-05-12 11:20:02 -0700
committerTony Lindgren <tony@atomide.com>2009-05-12 11:20:30 -0700
commitc8a799b03a981b4b27d8fd7320c96cfbe781b2fb (patch)
tree15dd88b2a8e4727effcc8d4d70c135e0109473b9 /arch/arm/mach-omap2/devices.c
parenteaf9393bb79a9c7c8e708669f9581ca466122430 (diff)
downloadop-kernel-dev-c8a799b03a981b4b27d8fd7320c96cfbe781b2fb.zip
op-kernel-dev-c8a799b03a981b4b27d8fd7320c96cfbe781b2fb.tar.gz
ARM: OMAP2: Fix SPI driver failure on 2420 when running multi-omap config
SPI driver will do unhandled fault on OMAP2420 if trying to probe non-existing SPI busses. Register those additional busses runtime only for cpus having them. Signed-off-by: Jarkko Nikula <jhnikula@gmail.com> Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch/arm/mach-omap2/devices.c')
-rw-r--r--arch/arm/mach-omap2/devices.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/arch/arm/mach-omap2/devices.c b/arch/arm/mach-omap2/devices.c
index 496983a..894cc35 100644
--- a/arch/arm/mach-omap2/devices.c
+++ b/arch/arm/mach-omap2/devices.c
@@ -354,10 +354,12 @@ static void omap_init_mcspi(void)
platform_device_register(&omap2_mcspi1);
platform_device_register(&omap2_mcspi2);
#if defined(CONFIG_ARCH_OMAP2430) || defined(CONFIG_ARCH_OMAP3)
- platform_device_register(&omap2_mcspi3);
+ if (cpu_is_omap2430() || cpu_is_omap343x())
+ platform_device_register(&omap2_mcspi3);
#endif
#ifdef CONFIG_ARCH_OMAP3
- platform_device_register(&omap2_mcspi4);
+ if (cpu_is_omap343x())
+ platform_device_register(&omap2_mcspi4);
#endif
}
OpenPOWER on IntegriCloud