summaryrefslogtreecommitdiffstats
path: root/drivers/clocksource/clksrc-of.c
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2013-04-08 18:34:19 +0200
committerArnd Bergmann <arnd@arndb.de>2013-04-08 18:34:19 +0200
commit6b5606e0834bb173a8ce3505edec078f135e9f6c (patch)
tree9f3bdc09be01e14fb68368b1c111a04cc570518f /drivers/clocksource/clksrc-of.c
parentMerge tag 'vt8500/pinctrl' of git://server.prisktech.co.nz/git/linuxwmt into ... (diff)
parentarm: zynq: Move timer to generic location (diff)
downloadlinux-6b5606e0834bb173a8ce3505edec078f135e9f6c.tar.xz
linux-6b5606e0834bb173a8ce3505edec078f135e9f6c.zip
Merge branch 'zynq/clksrc/cleanup' of git://git.xilinx.com/linux-xlnx into next/drivers
From Michal Simek <michal.simek@xilinx.com>: * 'zynq/clksrc/cleanup' of git://git.xilinx.com/linux-xlnx: arm: zynq: Move timer to generic location arm: zynq: Do not use xilinx specific function names arm: zynq: Move timer to clocksource interface arm: zynq: Use standard timer binding Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'drivers/clocksource/clksrc-of.c')
-rw-r--r--drivers/clocksource/clksrc-of.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/clocksource/clksrc-of.c b/drivers/clocksource/clksrc-of.c
index bdabdaa8d00f..37f5325bec95 100644
--- a/drivers/clocksource/clksrc-of.c
+++ b/drivers/clocksource/clksrc-of.c
@@ -16,6 +16,7 @@
#include <linux/init.h>
#include <linux/of.h>
+#include <linux/clocksource.h>
extern struct of_device_id __clksrc_of_table[];
@@ -26,10 +27,10 @@ void __init clocksource_of_init(void)
{
struct device_node *np;
const struct of_device_id *match;
- void (*init_func)(void);
+ clocksource_of_init_fn init_func;
for_each_matching_node_and_match(np, __clksrc_of_table, &match) {
init_func = match->data;
- init_func();
+ init_func(np);
}
}