diff options
author | Russell King <rmk+kernel@arm.linux.org.uk> | 2011-01-11 08:00:04 -0500 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2011-02-19 06:09:33 -0500 |
commit | c735c9873d0c2f269fd16f4b04903da41a44cbcf (patch) | |
tree | c06f2fb2d072bd1ee35abf88c56fd838b92ed840 /arch/arm/mach-integrator/integrator_cp.c | |
parent | 0fb44b910f6873c49066e8d0bf681a058fc01b67 (diff) |
ARM: integrator: use new init_early for clock tree init
Initialize the clock tree early.
Acked-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/mach-integrator/integrator_cp.c')
-rw-r--r-- | arch/arm/mach-integrator/integrator_cp.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/arch/arm/mach-integrator/integrator_cp.c b/arch/arm/mach-integrator/integrator_cp.c index 9c0203738aae..e6700aab849a 100644 --- a/arch/arm/mach-integrator/integrator_cp.c +++ b/arch/arm/mach-integrator/integrator_cp.c | |||
@@ -520,11 +520,17 @@ static struct amba_device *amba_devs[] __initdata = { | |||
520 | &clcd_device, | 520 | &clcd_device, |
521 | }; | 521 | }; |
522 | 522 | ||
523 | static void __init intcp_init_early(void) | ||
524 | { | ||
525 | clkdev_add_table(cp_lookups, ARRAY_SIZE(cp_lookups)); | ||
526 | |||
527 | integrator_init_early(); | ||
528 | } | ||
529 | |||
523 | static void __init intcp_init(void) | 530 | static void __init intcp_init(void) |
524 | { | 531 | { |
525 | int i; | 532 | int i; |
526 | 533 | ||
527 | clkdev_add_table(cp_lookups, ARRAY_SIZE(cp_lookups)); | ||
528 | platform_add_devices(intcp_devs, ARRAY_SIZE(intcp_devs)); | 534 | platform_add_devices(intcp_devs, ARRAY_SIZE(intcp_devs)); |
529 | 535 | ||
530 | for (i = 0; i < ARRAY_SIZE(amba_devs); i++) { | 536 | for (i = 0; i < ARRAY_SIZE(amba_devs); i++) { |
@@ -554,8 +560,9 @@ static struct sys_timer cp_timer = { | |||
554 | MACHINE_START(CINTEGRATOR, "ARM-IntegratorCP") | 560 | MACHINE_START(CINTEGRATOR, "ARM-IntegratorCP") |
555 | /* Maintainer: ARM Ltd/Deep Blue Solutions Ltd */ | 561 | /* Maintainer: ARM Ltd/Deep Blue Solutions Ltd */ |
556 | .boot_params = 0x00000100, | 562 | .boot_params = 0x00000100, |
557 | .map_io = intcp_map_io, | ||
558 | .reserve = integrator_reserve, | 563 | .reserve = integrator_reserve, |
564 | .map_io = intcp_map_io, | ||
565 | .init_early = intcp_init_early, | ||
559 | .init_irq = intcp_init_irq, | 566 | .init_irq = intcp_init_irq, |
560 | .timer = &cp_timer, | 567 | .timer = &cp_timer, |
561 | .init_machine = intcp_init, | 568 | .init_machine = intcp_init, |