ARM: U300: update clock source registration
In d7e81c2 (clocksource: Add clocksource_register_hz/khz interface) new interfaces were added which simplify (and optimize) the selection of the divisor shift/mult constants. Switch over to using this new interface. Acked-by: Linus Walleij <linus.walleij@stericsson.com> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
This commit is contained in:
parent
6b46340a18
commit
da797478c1
@ -412,9 +412,7 @@ static void __init u300_timer_init(void)
|
|||||||
writel(U300_TIMER_APP_EGPT2_TIMER_ENABLE,
|
writel(U300_TIMER_APP_EGPT2_TIMER_ENABLE,
|
||||||
U300_TIMER_APP_VBASE + U300_TIMER_APP_EGPT2);
|
U300_TIMER_APP_VBASE + U300_TIMER_APP_EGPT2);
|
||||||
|
|
||||||
clocksource_calc_mult_shift(&clocksource_u300_1mhz,
|
if (clocksource_register_hz(&clocksource_u300_1mhz, rate))
|
||||||
rate, APPTIMER_MIN_RANGE);
|
|
||||||
if (clocksource_register(&clocksource_u300_1mhz))
|
|
||||||
printk(KERN_ERR "timer: failed to initialize clock "
|
printk(KERN_ERR "timer: failed to initialize clock "
|
||||||
"source %s\n", clocksource_u300_1mhz.name);
|
"source %s\n", clocksource_u300_1mhz.name);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user