aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/clocksource/exynos_mct.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/drivers/clocksource/exynos_mct.c b/drivers/clocksource/exynos_mct.c
index 545c98976e93..f817c5401269 100644
--- a/drivers/clocksource/exynos_mct.c
+++ b/drivers/clocksource/exynos_mct.c
@@ -479,10 +479,13 @@ static struct local_timer_ops exynos4_mct_tick_ops __cpuinitdata = {
479 479
480static void __init exynos4_timer_resources(struct device_node *np) 480static void __init exynos4_timer_resources(struct device_node *np)
481{ 481{
482 struct clk *mct_clk; 482 struct clk *tick_clk;
483 mct_clk = clk_get(NULL, "xtal");
484 483
485 clk_rate = clk_get_rate(mct_clk); 484 tick_clk = np ? of_clk_get_by_name(np, "fin_pll") :
485 clk_get(NULL, "fin_pll");
486 if (IS_ERR(tick_clk))
487 panic("%s: unable to determine tick clock rate\n", __func__);
488 clk_rate = clk_get_rate(tick_clk);
486 489
487 reg_base = np ? of_iomap(np, 0) : S5P_VA_SYSTIMER; 490 reg_base = np ? of_iomap(np, 0) : S5P_VA_SYSTIMER;
488 if (!reg_base) 491 if (!reg_base)