]> git.karo-electronics.de Git - linux-beck.git/commit
clocksource: update "fn" at CLOCKSOURCE_OF_DECLARE() of nps400 timer
authorNoam Camus <noamca@mellanox.com>
Wed, 16 Nov 2016 06:31:12 +0000 (08:31 +0200)
committerVineet Gupta <vgupta@synopsys.com>
Wed, 30 Nov 2016 19:54:25 +0000 (11:54 -0800)
commit0465fb495f9c9698de08ff103905008e5f38e8f1
tree02ba9ebf43ce8e4140bd2d625f0817f71e2fe743
parent09dcd1958be42ea473fef24a2c02d975f520ea71
clocksource: update "fn" at CLOCKSOURCE_OF_DECLARE() of nps400 timer

nps_setup_clocksource() should take node as only argument as defined by
typedef int (*of_init_fn_1_ret)(struct device_node *)

Therefore need to replace:
int __init nps_setup_clocksource(struct device_node *node, struct clk *clk)
with
int __init nps_setup_clocksource(struct device_node *node)

This patch also serve as preparation for next patch which add support
for clockevents to nps400.
Specifically we add new function nps_get_timer_clk() to serve clocksource
and later clockevent registration.

Signed-off-by: Noam Camus <noamca@mellanox.com>
Acked-by: Daniel Lezcano <daniel.lezcano@linaro.org>
drivers/clocksource/timer-nps.c