linux/arch/arm/mach-socfpga
Heiko Stuebner 1002148899 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>
2013-06-12 13:47:38 +02:00
..
core.h ARM: socfpga: Enable soft reset 2013-04-14 20:17:33 -07:00
headsmp.S arm: socfpga: Add SMP support for actual socfpga harware 2013-02-11 19:37:26 -08:00
Kconfig clocksource: dw_apb_timer_of: select DW_APB_TIMER 2013-06-12 13:47:30 +02:00
Makefile ARM: socfpga: Enable SMP for socfpga 2012-10-26 14:59:39 +02:00
platsmp.c Merge branch 'gic/cleanup' into next/soc 2013-04-28 15:06:56 -07:00
socfpga.c clocksource: dw_apb_timer_of: use clocksource_of_init 2013-06-12 13:47:38 +02:00