clocksource: armada-370-xp: Enable timer divider only when needed
authorEzequiel Garcia <ezequiel.garcia@free-electrons.com>
Mon, 2 Dec 2013 10:39:56 +0000 (11:39 +0100)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Wed, 11 Dec 2013 10:40:26 +0000 (11:40 +0100)
commit08cb8e460956489fcfbfab5a7d33e62acd190b9a
treec5eb44c4afafb8ebf418a2bc33a8dc3c061a9c14
parentfdca679d87bb4ac0fdc882dbf3deb47a1f58b813
clocksource: armada-370-xp: Enable timer divider only when needed

The current code sets the timer divider bits always. However, when
the 25 MHz timer is enabled, this is not needed and has no effect.
As this causes some confusion, rework the code so the divider is
set only when needed, i.e. when the 25 MHz timer is not in use.

Acked-by: Gregory CLEMENT <gregory.clement@free-electrons.com>
Signed-off-by: Ezequiel Garcia <ezequiel.garcia@free-electrons.com>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
drivers/clocksource/time-armada-370-xp.c