clocksource: dw_apb_timer_of: use clocksource_of_init
authorHeiko Stuebner <heiko@sntech.de>
Tue, 4 Jun 2013 09:38:42 +0000 (11:38 +0200)
committerHeiko Stuebner <heiko@sntech.de>
Wed, 12 Jun 2013 11:47:38 +0000 (13:47 +0200)
commit10021488997317d1121505a7ac659124c058efed
treef60e46a76bfb07bdce714f959fca5abaec26ff94
parent1b4eca0f634be2a99f2baa6c29dfd183590ead3f
clocksource: dw_apb_timer_of: use clocksource_of_init

dw_apb_timer_init used to search the devicetree for matching timer
devices, making calls to it from board files necessary.

Change the dw_apb_timer_init to work with CLOCKSOURCE_OF_DECLARE.
With this change the function gets called once for each timer node
and tracks these number of calls to attach clockevent and clocksource
devices to the nodes.

Also remove the calls to dw_apb_timer_init from all previous users, as
clocksource_of_init is the default for init_time now.

Tested on the upcoming rk3066 code.

Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Acked-by: Rob Herring <rob.herring@calxeda.com>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Jamie Iles <jamie@jamieiles.com>
Acked-by: Dinh Nguyen <dinguyen@altera.com>
arch/arm/mach-picoxcell/common.c
arch/arm/mach-socfpga/socfpga.c
drivers/clocksource/Kconfig
drivers/clocksource/dw_apb_timer_of.c
include/linux/dw_apb_timer.h