diff options
author | Heiko Stuebner <heiko@sntech.de> | 2013-06-04 11:38:42 +0200 |
---|---|---|
committer | Heiko Stuebner <heiko@sntech.de> | 2013-06-12 13:47:38 +0200 |
commit | 10021488997317d1121505a7ac659124c058efed (patch) | |
tree | f60e46a76bfb07bdce714f959fca5abaec26ff94 /drivers/clocksource/Kconfig | |
parent | clocksource: dw_apb_timer_of: select DW_APB_TIMER (diff) | |
download | linux-10021488997317d1121505a7ac659124c058efed.tar.xz linux-10021488997317d1121505a7ac659124c058efed.zip |
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>
Diffstat (limited to 'drivers/clocksource/Kconfig')
-rw-r--r-- | drivers/clocksource/Kconfig | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/clocksource/Kconfig b/drivers/clocksource/Kconfig index 48a0f2e1dd78..5871933c4e51 100644 --- a/drivers/clocksource/Kconfig +++ b/drivers/clocksource/Kconfig @@ -22,6 +22,7 @@ config DW_APB_TIMER config DW_APB_TIMER_OF bool select DW_APB_TIMER + select CLKSRC_OF config ARMADA_370_XP_TIMER bool |