summaryrefslogtreecommitdiff
path: root/drivers/clocksource/sun4i_timer.c
diff options
context:
space:
mode:
authorMaxime Ripard <maxime.ripard@free-electrons.com>2013-07-16 18:45:38 +0400
committerDaniel Lezcano <daniel.lezcano@linaro.org>2013-07-18 17:27:16 +0400
commit8c31bec28b69a86aa83f072e6e00225380853a9e (patch)
tree3b7ae083e70d6fd927957ff0531a277bfea303c5 /drivers/clocksource/sun4i_timer.c
parent137c6b3c7c63944a9cb51de0870b72f62d240f62 (diff)
downloadlinux-8c31bec28b69a86aa83f072e6e00225380853a9e.tar.xz
clocksource: sun4i: Don't forget to enable the clock we use
Even if in our case, this clock was non-gatable, used as a parent clock for several IPs, it still is a good idea to enable it. Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com> Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Diffstat (limited to 'drivers/clocksource/sun4i_timer.c')
-rw-r--r--drivers/clocksource/sun4i_timer.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/clocksource/sun4i_timer.c b/drivers/clocksource/sun4i_timer.c
index b581c93f20b3..8e9c65136451 100644
--- a/drivers/clocksource/sun4i_timer.c
+++ b/drivers/clocksource/sun4i_timer.c
@@ -120,6 +120,7 @@ static void __init sun4i_timer_init(struct device_node *node)
clk = of_clk_get(node, 0);
if (IS_ERR(clk))
panic("Can't get timer clock");
+ clk_prepare_enable(clk);
rate = clk_get_rate(clk);