diff options
author | Tony Lindgren <tony@atomide.com> | 2010-02-12 21:26:48 +0100 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2010-02-15 18:27:05 +0100 |
commit | 4323e9f71903f654abc6d21a3ef81c08e0ac2288 (patch) | |
tree | acccee89ce2e54eaaf0584175e981da4081cad2e /arch/arm/mach-omap2/devices.c | |
parent | omap2/3/4: Replace orred CONFIG_ARCH_OMAP2/3/4 with CONFIG_ARCH_OMAP2PLUS (diff) | |
download | linux-4323e9f71903f654abc6d21a3ef81c08e0ac2288.tar.xz linux-4323e9f71903f654abc6d21a3ef81c08e0ac2288.zip |
omap2/3: Fix initcalls for multi-omap
Otherwise the wrong initcalls can run.
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.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/arch/arm/mach-omap2/devices.c b/arch/arm/mach-omap2/devices.c index 935e36c3a5e9..c104d5ca65b2 100644 --- a/arch/arm/mach-omap2/devices.c +++ b/arch/arm/mach-omap2/devices.c @@ -510,7 +510,12 @@ static struct platform_device dummy_pdev = { **/ static void __init omap_hsmmc_reset(void) { - u32 i, nr_controllers = cpu_is_omap44xx() ? OMAP44XX_NR_MMC : + u32 i, nr_controllers; + + if (cpu_is_omap242x()) + return; + + nr_controllers = cpu_is_omap44xx() ? OMAP44XX_NR_MMC : (cpu_is_omap34xx() ? OMAP34XX_NR_MMC : OMAP24XX_NR_MMC); for (i = 0; i < nr_controllers; i++) { |