clocksource: use clockevents_config_and_register() where possible
authorShawn Guo <shawn.guo@linaro.org>
Sat, 12 Jan 2013 11:50:06 +0000 (11:50 +0000)
committerOlof Johansson <olof@lixom.net>
Mon, 14 Jan 2013 18:12:42 +0000 (10:12 -0800)
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 <shawn.guo@linaro.org>
Cc: Andres Salomon <dilinger@queued.net>
Cc: Nicolas Ferre <nicolas.ferre@atmel.com>
Acked-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Olof Johansson <olof@lixom.net>

No differences found