mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-21 06:31:31 +00:00
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 <marek.vasut+renesas@gmail.com>
This commit is contained in:
parent
15f11fc6d7
commit
ae59a9f8f7
2 changed files with 1 additions and 6 deletions
|
@ -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)
|
||||
|
|
|
@ -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 */
|
||||
|
|
Loading…
Add table
Reference in a new issue