ARM/ixp4xx/timer: Migrate to new 'set-state' interface
authorViresh Kumar <viresh.kumar@linaro.org>
Fri, 27 Feb 2015 08:09:52 +0000 (13:39 +0530)
committerViresh Kumar <viresh.kumar@linaro.org>
Fri, 17 Jul 2015 02:55:27 +0000 (08:25 +0530)
commitcea50eeef15c8498181c4a1ff804a7cdef29aebb
tree6b41227ae450b7483bf65a9a27a229ab125d28f5
parent3200579fafb0400cd098e939ec664638d38e2bc9
ARM/ixp4xx/timer: Migrate to new 'set-state' interface

Migrate ixp4xx driver to the new 'set-state' interface provided by
clockevents core, the earlier 'set-mode' interface is marked obsolete
now.

This also enables us to implement callbacks for new states of clockevent
devices, for example: ONESHOT_STOPPED.

NOTE: ixp4xx_set_{oneshot|periodic} don't perform read operation on
'IXP4XX_OSRT1' register anymore.

Cc: Imre Kaloz <kaloz@openwrt.org>
Acked-by: Krzysztof HaƂasa <khalasa@piap.pl>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
arch/arm/mach-ixp4xx/common.c