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-cm-t3517.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-cm-t3517.c')
-rw-r--r-- | arch/arm/mach-omap2/board-cm-t3517.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/arch/arm/mach-omap2/board-cm-t3517.c b/arch/arm/mach-omap2/board-cm-t3517.c index 8f9a64d650ee..38bef6d004c9 100644 --- a/arch/arm/mach-omap2/board-cm-t3517.c +++ b/arch/arm/mach-omap2/board-cm-t3517.c | |||
@@ -254,14 +254,13 @@ static inline void cm_t3517_init_nand(void) {} | |||
254 | static struct omap_board_config_kernel cm_t3517_config[] __initdata = { | 254 | static struct omap_board_config_kernel cm_t3517_config[] __initdata = { |
255 | }; | 255 | }; |
256 | 256 | ||
257 | static void __init cm_t3517_init_irq(void) | 257 | static void __init cm_t3517_init_early(void) |
258 | { | 258 | { |
259 | omap_board_config = cm_t3517_config; | 259 | omap_board_config = cm_t3517_config; |
260 | omap_board_config_size = ARRAY_SIZE(cm_t3517_config); | 260 | omap_board_config_size = ARRAY_SIZE(cm_t3517_config); |
261 | 261 | ||
262 | omap2_init_common_infrastructure(); | 262 | omap2_init_common_infrastructure(); |
263 | omap2_init_common_devices(NULL, NULL); | 263 | omap2_init_common_devices(NULL, NULL); |
264 | omap_init_irq(); | ||
265 | } | 264 | } |
266 | 265 | ||
267 | static struct omap_board_mux board_mux[] __initdata = { | 266 | static struct omap_board_mux board_mux[] __initdata = { |
@@ -303,9 +302,10 @@ static void __init cm_t3517_init(void) | |||
303 | 302 | ||
304 | MACHINE_START(CM_T3517, "Compulab CM-T3517") | 303 | MACHINE_START(CM_T3517, "Compulab CM-T3517") |
305 | .boot_params = 0x80000100, | 304 | .boot_params = 0x80000100, |
306 | .map_io = omap3_map_io, | ||
307 | .reserve = omap_reserve, | 305 | .reserve = omap_reserve, |
308 | .init_irq = cm_t3517_init_irq, | 306 | .map_io = omap3_map_io, |
307 | .init_early = cm_t3517_init_early, | ||
308 | .init_irq = omap_init_irq, | ||
309 | .init_machine = cm_t3517_init, | 309 | .init_machine = cm_t3517_init, |
310 | .timer = &omap_timer, | 310 | .timer = &omap_timer, |
311 | MACHINE_END | 311 | MACHINE_END |