From: Marek Vasut Date: Fri, 24 Aug 2018 19:29:04 +0000 (+0200) Subject: sh: tmu: Inline get_tmu0_clk_rate() X-Git-Tag: v2018.11-rc1~120^2~5 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ae59a9f8f7785d86277149eb37314d2f21392f6f;p=platform%2Fkernel%2Fu-boot.git sh: tmu: Inline get_tmu0_clk_rate() This function just returns CONFIG_SH_TMU_CLK_FREQ, use the constant directly instead. Signed-off-by: Marek Vasut --- diff --git a/arch/sh/lib/time.c b/arch/sh/lib/time.c index 6273f39..0f31271 100644 --- a/arch/sh/lib/time.c +++ b/arch/sh/lib/time.c @@ -22,7 +22,7 @@ static struct tmu_regs *tmu = (struct tmu_regs *)TMU_BASE; unsigned long get_tbclk(void) { - return get_tmu0_clk_rate() >> 2; + return CONFIG_SH_TMU_CLK_FREQ / 4; } unsigned long timer_read_counter(void) diff --git a/include/sh_tmu.h b/include/sh_tmu.h index aa60c98..70aca21 100644 --- a/include/sh_tmu.h +++ b/include/sh_tmu.h @@ -67,9 +67,4 @@ struct tmu_regs { }; #endif /* CONFIG_CPU_SH4 */ -static inline unsigned long get_tmu0_clk_rate(void) -{ - return CONFIG_SH_TMU_CLK_FREQ; -} - #endif /* __SH_TMU_H */