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-am3517evm.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-am3517evm.c')
-rw-r--r-- | arch/arm/mach-omap2/board-am3517evm.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/arch/arm/mach-omap2/board-am3517evm.c b/arch/arm/mach-omap2/board-am3517evm.c index 10d60b7743cf..d0d0f5528132 100644 --- a/arch/arm/mach-omap2/board-am3517evm.c +++ b/arch/arm/mach-omap2/board-am3517evm.c | |||
@@ -396,13 +396,12 @@ static struct platform_device *am3517_evm_devices[] __initdata = { | |||
396 | &am3517_evm_dss_device, | 396 | &am3517_evm_dss_device, |
397 | }; | 397 | }; |
398 | 398 | ||
399 | static void __init am3517_evm_init_irq(void) | 399 | static void __init am3517_evm_init_early(void) |
400 | { | 400 | { |
401 | omap_board_config = am3517_evm_config; | 401 | omap_board_config = am3517_evm_config; |
402 | omap_board_config_size = ARRAY_SIZE(am3517_evm_config); | 402 | omap_board_config_size = ARRAY_SIZE(am3517_evm_config); |
403 | omap2_init_common_infrastructure(); | 403 | omap2_init_common_infrastructure(); |
404 | omap2_init_common_devices(NULL, NULL); | 404 | omap2_init_common_devices(NULL, NULL); |
405 | omap_init_irq(); | ||
406 | } | 405 | } |
407 | 406 | ||
408 | static struct omap_musb_board_data musb_board_data = { | 407 | static struct omap_musb_board_data musb_board_data = { |
@@ -521,9 +520,10 @@ static void __init am3517_evm_init(void) | |||
521 | 520 | ||
522 | MACHINE_START(OMAP3517EVM, "OMAP3517/AM3517 EVM") | 521 | MACHINE_START(OMAP3517EVM, "OMAP3517/AM3517 EVM") |
523 | .boot_params = 0x80000100, | 522 | .boot_params = 0x80000100, |
524 | .map_io = omap3_map_io, | ||
525 | .reserve = omap_reserve, | 523 | .reserve = omap_reserve, |
526 | .init_irq = am3517_evm_init_irq, | 524 | .map_io = omap3_map_io, |
525 | .init_early = am3517_evm_init_early, | ||
526 | .init_irq = omap_init_irq, | ||
527 | .init_machine = am3517_evm_init, | 527 | .init_machine = am3517_evm_init, |
528 | .timer = &omap_timer, | 528 | .timer = &omap_timer, |
529 | MACHINE_END | 529 | MACHINE_END |