From: Jaehyoung Choi Date: Thu, 3 May 2018 12:06:39 +0000 (+0900) Subject: [HACK] remove clock setting code X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=c6d418b50aeb5fedbbac7ce5e4a120c4757c00f3;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git [HACK] remove clock setting code Change-Id: Ib34be34cd4a23277a8cb29dcf9592ec6abfded27 Signed-off-by: Jaehyoung Choi --- diff --git a/drivers/clk/samsung/clk-exynos9610.c b/drivers/clk/samsung/clk-exynos9610.c index 05b45d1f7ce9..ecd665679d1c 100644 --- a/drivers/clk/samsung/clk-exynos9610.c +++ b/drivers/clk/samsung/clk-exynos9610.c @@ -302,10 +302,12 @@ static struct init_vclk exynos9610_clkout_vclks[] __initdata = { VCLK(OSC_AUD, VCLK_CLKOUT0, "OSC_AUD", 0, 0, NULL), }; +#if 0 static __initdata struct of_device_id ext_clk_match[] = { {.compatible = "samsung,exynos9610-oscclk", .data = (void *)0}, {}, }; +#endif void exynos9610_vclk_init(void) { @@ -315,6 +317,7 @@ void exynos9610_vclk_init(void) /* register exynos9610 clocks */ void __init exynos9610_clk_init(struct device_node *np) { +#if 0 void __iomem *reg_base; int ret; @@ -369,7 +372,7 @@ void __init exynos9610_clk_init(struct device_node *np) samsung_clk_of_add_provider(np, exynos9610_clk_provider); late_time_init = exynos9610_vclk_init; - +#endif pr_info("EXYNOS9610: Clock setup completed\n"); } diff --git a/drivers/clocksource/exynos_mct.c b/drivers/clocksource/exynos_mct.c index 27b41aae04fa..972607972030 100644 --- a/drivers/clocksource/exynos_mct.c +++ b/drivers/clocksource/exynos_mct.c @@ -494,6 +494,7 @@ 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") : @@ -506,7 +507,8 @@ 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__);