clocksource/drivers/timer_sun5i: Replace code by clocksource_mmio_init
authorDaniel Lezcano <daniel.lezcano@linaro.org>
Thu, 12 Nov 2015 17:05:11 +0000 (18:05 +0100)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Tue, 15 Dec 2015 08:42:30 +0000 (09:42 +0100)
commit157dfadef8323046df32caa4b39b46bf7737ca23
tree63e37f68e608661d3d91e13b8d0a06d74365e3d9
parent05de7ed6795a1826e67fac56051f0ec23a643d38
clocksource/drivers/timer_sun5i: Replace code by clocksource_mmio_init

The current code to initialize, register and read the clocksource is
already factored out in mmio.c via the clocksource_mmio_init function.

The only difference is the readl vs readl_relaxed.

Factor out the code with the clocksource_mmio_init function.

Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Acked-by: Maxime Ripard <maxime.ripard@free-electrons.com>
drivers/clocksource/timer-sun5i.c