diff options
author | Chanho Min <chanho.min@lge.com> | 2014-04-14 08:38:53 +0100 |
---|---|---|
committer | Catalin Marinas <catalin.marinas@arm.com> | 2014-04-25 18:15:56 +0100 |
commit | bc3ee18a7a57243721ecfd879319e3d2e882f289 (patch) | |
tree | ffec556fa31106c8d8e6a21647e8c0449b4fdd25 /arch/arm64/kernel/time.c | |
parent | 8f0712037b4ed63dfce844939ac9866054f15ca0 (diff) | |
download | linux-stable-bc3ee18a7a57243721ecfd879319e3d2e882f289.tar.gz linux-stable-bc3ee18a7a57243721ecfd879319e3d2e882f289.tar.bz2 linux-stable-bc3ee18a7a57243721ecfd879319e3d2e882f289.zip |
arm64: init: Move of_clk_init to time_init
Clock providers should be initialized before clocksource_of_init.
If not, Clock source initialization can be fail to get the clock.
Acked-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Chanho Min <chanho.min@lge.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Diffstat (limited to 'arch/arm64/kernel/time.c')
-rw-r--r-- | arch/arm64/kernel/time.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm64/kernel/time.c b/arch/arm64/kernel/time.c index 29c39d5d77e3..6815987b50f8 100644 --- a/arch/arm64/kernel/time.c +++ b/arch/arm64/kernel/time.c @@ -33,6 +33,7 @@ #include <linux/irq.h> #include <linux/delay.h> #include <linux/clocksource.h> +#include <linux/clk-provider.h> #include <clocksource/arm_arch_timer.h> @@ -65,6 +66,7 @@ void __init time_init(void) { u32 arch_timer_rate; + of_clk_init(NULL); clocksource_of_init(); arch_timer_rate = arch_timer_get_rate(); |