From: Heiko Stuebner Date: Tue, 4 Jun 2013 09:38:42 +0000 (+0200) Subject: clocksource: dw_apb_timer_of: use clocksource_of_init X-Git-Tag: omap-for-v3.11/fixes-for-merge-window~68^2~16^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=10021488997317d1121505a7ac659124c058efed;p=pandora-kernel.git 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 Acked-by: Rob Herring Acked-by: Arnd Bergmann Acked-by: Jamie Iles Acked-by: Dinh Nguyen --- Reading git-diff-tree failed