ARM/cns3xxx/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:52:25 +0000 (08:22 +0530)
commit9bdc2e0c9a45b2b5f4de9927562305475ecb9b55
treecb504858773a48577254203c88a7d3c3adecd3b8
parent5e2535710ee3fa2807406ea75eb4381f85b29b0b
ARM/cns3xxx/timer: Migrate to new 'set-state' interface

Migrate cns3xxx 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: We don't read TIMER1_2_CONTROL_OFFSET register on shutdown
anymore.

Acked-by: Krzysztof HaƂasa <khalasa@piap.pl>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
arch/arm/mach-cns3xxx/core.c