]> git.baikalelectronics.ru Git - uboot.git/commitdiff
sh: tmu: Inline get_tmu0_clk_rate()
authorMarek Vasut <marek.vasut+renesas@gmail.com>
Fri, 24 Aug 2018 19:29:04 +0000 (21:29 +0200)
committerMarek Vasut <marex@denx.de>
Sat, 15 Sep 2018 01:19:07 +0000 (03:19 +0200)
This function just returns CONFIG_SH_TMU_CLK_FREQ, use the constant
directly instead.

Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com>
arch/sh/lib/time.c
include/sh_tmu.h

index 6273f39f2100ac6f0e9c69409c51fe74647b5c77..0f3127106a82ece72c7b2b647ba9bfa5410f28e9 100644 (file)
@@ -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)
index aa60c98750a0311eb4675cd71a96cde7b1f170c4..70aca2149acc7f353d41a020ef37be67a0425349 100644 (file)
@@ -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 */