diff options
author | Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com> | 2013-08-27 09:34:12 -0400 |
---|---|---|
committer | Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com> | 2013-09-29 15:09:48 -0400 |
commit | 56e89cf55c47288f906bd769cb3d6d4736db548a (patch) | |
tree | 05aebd20fae44c2288b64f66ec052f4e95c691c4 | |
parent | 41136b664ad11d542e8378c757dac9ab174b0805 (diff) |
ARM: vexpress: remove custom .init_time hook
With arch/arm calling of_clk_init(NULL) from time_init(), we can now
remove custom .init_time hooks. The call to versatile_sched_clock_init
is moved to .init_early instead, were it is also for non-DT boards.
Signed-off-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
Tested-by: Jon Medhurst (Tixy) <tixy@linaro.org>
Acked-by: Pawel Moll <pawel.moll@arm.com>
-rw-r--r-- | arch/arm/mach-vexpress/v2m.c | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/arch/arm/mach-vexpress/v2m.c b/arch/arm/mach-vexpress/v2m.c index 95a469e23e37..4f8b8cb17ff5 100644 --- a/arch/arm/mach-vexpress/v2m.c +++ b/arch/arm/mach-vexpress/v2m.c | |||
@@ -1,12 +1,10 @@ | |||
1 | /* | 1 | /* |
2 | * Versatile Express V2M Motherboard Support | 2 | * Versatile Express V2M Motherboard Support |
3 | */ | 3 | */ |
4 | #include <linux/clocksource.h> | ||
5 | #include <linux/device.h> | 4 | #include <linux/device.h> |
6 | #include <linux/amba/bus.h> | 5 | #include <linux/amba/bus.h> |
7 | #include <linux/amba/mmci.h> | 6 | #include <linux/amba/mmci.h> |
8 | #include <linux/io.h> | 7 | #include <linux/io.h> |
9 | #include <linux/clocksource.h> | ||
10 | #include <linux/smp.h> | 8 | #include <linux/smp.h> |
11 | #include <linux/init.h> | 9 | #include <linux/init.h> |
12 | #include <linux/of_address.h> | 10 | #include <linux/of_address.h> |
@@ -22,7 +20,6 @@ | |||
22 | #include <linux/regulator/fixed.h> | 20 | #include <linux/regulator/fixed.h> |
23 | #include <linux/regulator/machine.h> | 21 | #include <linux/regulator/machine.h> |
24 | #include <linux/vexpress.h> | 22 | #include <linux/vexpress.h> |
25 | #include <linux/clk-provider.h> | ||
26 | #include <linux/clkdev.h> | 23 | #include <linux/clkdev.h> |
27 | 24 | ||
28 | #include <asm/mach-types.h> | 25 | #include <asm/mach-types.h> |
@@ -422,16 +419,8 @@ void __init v2m_dt_init_early(void) | |||
422 | pr_warning("vexpress: DT HBI (%x) is not matching " | 419 | pr_warning("vexpress: DT HBI (%x) is not matching " |
423 | "hardware (%x)!\n", dt_hbi, hbi); | 420 | "hardware (%x)!\n", dt_hbi, hbi); |
424 | } | 421 | } |
425 | } | ||
426 | |||
427 | static void __init v2m_dt_timer_init(void) | ||
428 | { | ||
429 | of_clk_init(NULL); | ||
430 | 422 | ||
431 | clocksource_of_init(); | 423 | versatile_sched_clock_init(vexpress_get_24mhz_clock_base(), 24000000); |
432 | |||
433 | versatile_sched_clock_init(vexpress_get_24mhz_clock_base(), | ||
434 | 24000000); | ||
435 | } | 424 | } |
436 | 425 | ||
437 | static const struct of_device_id v2m_dt_bus_match[] __initconst = { | 426 | static const struct of_device_id v2m_dt_bus_match[] __initconst = { |
@@ -458,6 +447,5 @@ DT_MACHINE_START(VEXPRESS_DT, "ARM-Versatile Express") | |||
458 | .smp_init = smp_init_ops(vexpress_smp_init_ops), | 447 | .smp_init = smp_init_ops(vexpress_smp_init_ops), |
459 | .map_io = v2m_dt_map_io, | 448 | .map_io = v2m_dt_map_io, |
460 | .init_early = v2m_dt_init_early, | 449 | .init_early = v2m_dt_init_early, |
461 | .init_time = v2m_dt_timer_init, | ||
462 | .init_machine = v2m_dt_init, | 450 | .init_machine = v2m_dt_init, |
463 | MACHINE_END | 451 | MACHINE_END |