Skip to content
Snippets Groups Projects
Commit ae59a9f8 authored by Marek Vasut's avatar Marek Vasut Committed by Marek Vasut
Browse files

sh: tmu: Inline get_tmu0_clk_rate()


This function just returns CONFIG_SH_TMU_CLK_FREQ, use the constant
directly instead.

Signed-off-by: default avatarMarek Vasut <marek.vasut+renesas@gmail.com>
parent 15f11fc6
No related branches found
No related tags found
No related merge requests found
......@@ -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 */
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment