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-igep0020.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-igep0020.c')
-rw-r--r-- | arch/arm/mach-omap2/board-igep0020.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/arch/arm/mach-omap2/board-igep0020.c b/arch/arm/mach-omap2/board-igep0020.c index 3be85a1f55f4..dd0b1ac3b662 100644 --- a/arch/arm/mach-omap2/board-igep0020.c +++ b/arch/arm/mach-omap2/board-igep0020.c | |||
@@ -525,12 +525,11 @@ static struct platform_device *igep2_devices[] __initdata = { | |||
525 | &igep2_vwlan_device, | 525 | &igep2_vwlan_device, |
526 | }; | 526 | }; |
527 | 527 | ||
528 | static void __init igep2_init_irq(void) | 528 | static void __init igep2_init_early(void) |
529 | { | 529 | { |
530 | omap2_init_common_infrastructure(); | 530 | omap2_init_common_infrastructure(); |
531 | omap2_init_common_devices(m65kxxxxam_sdrc_params, | 531 | omap2_init_common_devices(m65kxxxxam_sdrc_params, |
532 | m65kxxxxam_sdrc_params); | 532 | m65kxxxxam_sdrc_params); |
533 | omap_init_irq(); | ||
534 | } | 533 | } |
535 | 534 | ||
536 | static struct twl4030_codec_audio_data igep2_audio_data = { | 535 | static struct twl4030_codec_audio_data igep2_audio_data = { |
@@ -716,9 +715,10 @@ static void __init igep2_init(void) | |||
716 | 715 | ||
717 | MACHINE_START(IGEP0020, "IGEP v2 board") | 716 | MACHINE_START(IGEP0020, "IGEP v2 board") |
718 | .boot_params = 0x80000100, | 717 | .boot_params = 0x80000100, |
719 | .map_io = omap3_map_io, | ||
720 | .reserve = omap_reserve, | 718 | .reserve = omap_reserve, |
721 | .init_irq = igep2_init_irq, | 719 | .map_io = omap3_map_io, |
720 | .init_early = igep2_init_early, | ||
721 | .init_irq = omap_init_irq, | ||
722 | .init_machine = igep2_init, | 722 | .init_machine = igep2_init, |
723 | .timer = &omap_timer, | 723 | .timer = &omap_timer, |
724 | MACHINE_END | 724 | MACHINE_END |