clocksource: use clockevents_config_and_register() where possible
authorShawn Guo <[email protected]>
Sat, 12 Jan 2013 11:50:06 +0000 (11:50 +0000)
committerOlof Johansson <[email protected]>
Mon, 14 Jan 2013 18:12:42 +0000 (10:12 -0800)
commit77cc982f6a3b33a5aa058ad3b20cda8866db2948
treef9a4078925354e51becd8167e6c006e99ff27b11
parent838a2ae80a6ab52139fb1bf0a93ea8c5eff94488
clocksource: use clockevents_config_and_register() where possible

The clockevent core is able to figure out the best mult and shift,
calculate min_delta_ns and max_delta_ns, with the necessary info passed
into clockevents_config_and_register().  Use this combined configure
and register function where possible to make the codes less error prone
and gain some positive diff stat.

Signed-off-by: Shawn Guo <[email protected]>
Cc: Andres Salomon <[email protected]>
Cc: Nicolas Ferre <[email protected]>
Acked-by: Maxime Ripard <[email protected]>
Acked-by: Arnd Bergmann <[email protected]>
Reviewed-by: Thomas Gleixner <[email protected]>
Signed-off-by: Olof Johansson <[email protected]>
drivers/clocksource/cs5535-clockevt.c
drivers/clocksource/sunxi_timer.c
drivers/clocksource/tcb_clksrc.c