diff options
author | Russell King - ARM Linux <linux@arm.linux.org.uk> | 2011-02-14 18:40:20 -0500 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2011-02-14 18:40:20 -0500 |
commit | 3dc3bad6f1b316d79d9d1d596a590b5097cb3dc4 (patch) | |
tree | 2c8376da2652ac81bbadd08ef2ff8a28e1757c8e /arch/arm/mach-omap2/board-3430sdp.c | |
parent | 100b33c8bd8a3235fd0b7948338d6cbb3db3c63d (diff) |
ARM: OMAP2: use early init hook
Move non-mapping and non-irq initialization code out of .map_io and
.init_irq respectively into the new init_early hook.
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch/arm/mach-omap2/board-3430sdp.c')
-rw-r--r-- | arch/arm/mach-omap2/board-3430sdp.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/arch/arm/mach-omap2/board-3430sdp.c b/arch/arm/mach-omap2/board-3430sdp.c index d4e41ef86aa5..31085883199e 100644 --- a/arch/arm/mach-omap2/board-3430sdp.c +++ b/arch/arm/mach-omap2/board-3430sdp.c | |||
@@ -327,14 +327,13 @@ static struct platform_device *sdp3430_devices[] __initdata = { | |||
327 | static struct omap_board_config_kernel sdp3430_config[] __initdata = { | 327 | static struct omap_board_config_kernel sdp3430_config[] __initdata = { |
328 | }; | 328 | }; |
329 | 329 | ||
330 | static void __init omap_3430sdp_init_irq(void) | 330 | static void __init omap_3430sdp_init_early(void) |
331 | { | 331 | { |
332 | omap_board_config = sdp3430_config; | 332 | omap_board_config = sdp3430_config; |
333 | omap_board_config_size = ARRAY_SIZE(sdp3430_config); | 333 | omap_board_config_size = ARRAY_SIZE(sdp3430_config); |
334 | omap3_pm_init_cpuidle(omap3_cpuidle_params_table); | 334 | omap3_pm_init_cpuidle(omap3_cpuidle_params_table); |
335 | omap2_init_common_infrastructure(); | 335 | omap2_init_common_infrastructure(); |
336 | omap2_init_common_devices(hyb18m512160af6_sdrc_params, NULL); | 336 | omap2_init_common_devices(hyb18m512160af6_sdrc_params, NULL); |
337 | omap_init_irq(); | ||
338 | } | 337 | } |
339 | 338 | ||
340 | static int sdp3430_batt_table[] = { | 339 | static int sdp3430_batt_table[] = { |
@@ -822,9 +821,10 @@ static void __init omap_3430sdp_init(void) | |||
822 | MACHINE_START(OMAP_3430SDP, "OMAP3430 3430SDP board") | 821 | MACHINE_START(OMAP_3430SDP, "OMAP3430 3430SDP board") |
823 | /* Maintainer: Syed Khasim - Texas Instruments Inc */ | 822 | /* Maintainer: Syed Khasim - Texas Instruments Inc */ |
824 | .boot_params = 0x80000100, | 823 | .boot_params = 0x80000100, |
825 | .map_io = omap3_map_io, | ||
826 | .reserve = omap_reserve, | 824 | .reserve = omap_reserve, |
827 | .init_irq = omap_3430sdp_init_irq, | 825 | .map_io = omap3_map_io, |
826 | .init_early = omap_3430sdp_init_early, | ||
827 | .init_irq = omap_init_irq, | ||
828 | .init_machine = omap_3430sdp_init, | 828 | .init_machine = omap_3430sdp_init, |
829 | .timer = &omap_timer, | 829 | .timer = &omap_timer, |
830 | MACHINE_END | 830 | MACHINE_END |