projects
/
firefly-linux-kernel-4.4.55.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge tag 'dt-for-3.17' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc
[firefly-linux-kernel-4.4.55.git]
/
drivers
/
clocksource
/
timer-prima2.c
diff --git
a/drivers/clocksource/timer-prima2.c
b/drivers/clocksource/timer-prima2.c
index a722aac7ac021baedf3db3db8e629de6d99a0b14..ce18d570e1cdfa58274201f74e90f15c2f1d13ff 100644
(file)
--- a/
drivers/clocksource/timer-prima2.c
+++ b/
drivers/clocksource/timer-prima2.c
@@
-200,6
+200,9
@@
static void __init sirfsoc_prima2_timer_init(struct device_node *np)
clk = of_clk_get(np, 0);
BUG_ON(IS_ERR(clk));
+
+ BUG_ON(clk_prepare_enable(clk));
+
rate = clk_get_rate(clk);
BUG_ON(rate < PRIMA2_CLOCK_FREQ);