From: Jaehyoung Choi Date: Mon, 14 May 2018 07:16:55 +0000 (+0900) Subject: Revert "[HACK] remove clock setting code" X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=a8bff7308495d3490aa77199713fc3c184f6320d;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git Revert "[HACK] remove clock setting code" This reverts commit c6d418b50aeb5fedbbac7ce5e4a120c4757c00f3. --- diff --git a/drivers/clocksource/exynos_mct.c b/drivers/clocksource/exynos_mct.c index 972607972030..27b41aae04fa 100644 --- a/drivers/clocksource/exynos_mct.c +++ b/drivers/clocksource/exynos_mct.c @@ -494,7 +494,6 @@ static int exynos4_mct_dying_cpu(unsigned int cpu) static int __init exynos4_timer_resources(struct device_node *np, void __iomem *base) { int err, cpu; -#if 0 struct clk *mct_clk, *tick_clk; tick_clk = np ? of_clk_get_by_name(np, "fin_pll") : @@ -507,8 +506,7 @@ static int __init exynos4_timer_resources(struct device_node *np, void __iomem * if (IS_ERR(mct_clk)) panic("%s: unable to retrieve mct clock instance\n", __func__); clk_prepare_enable(mct_clk); -#endif - clk_rate = 26000000; + reg_base = base; if (!reg_base) panic("%s: unable to ioremap mct address space\n", __func__);