From: Russell King Date: Mon, 13 Dec 2010 13:20:23 +0000 (+0000) Subject: ARM: iop: update clock source registration X-Git-Tag: v2.6.38-rc1~471^2~3^2~22 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d28b116b9239b603f790a5ed6f0c5fe329561b49;p=platform%2Fupstream%2Fkernel-adaptation-pc.git ARM: iop: 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. Signed-off-by: Russell King --- diff --git a/arch/arm/plat-iop/time.c b/arch/arm/plat-iop/time.c index d615e6f..4332dc4 100644 --- a/arch/arm/plat-iop/time.c +++ b/arch/arm/plat-iop/time.c @@ -170,7 +170,5 @@ void __init iop_init_time(unsigned long tick_rate) write_trr1(0xffffffff); write_tcr1(0xffffffff); write_tmr1(timer_ctl); - clocksource_calc_mult_shift(&iop_clocksource, tick_rate, - IOP_MIN_RANGE); - clocksource_register(&iop_clocksource); + clocksource_register_hz(&iop_clocksource, tick_rate); }