diff options
Diffstat (limited to 'drivers/clocksource/clksrc-probe.c')
-rw-r--r-- | drivers/clocksource/clksrc-probe.c | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/drivers/clocksource/clksrc-probe.c b/drivers/clocksource/clksrc-probe.c index 5fa6a555b35c..bc62be97f0a8 100644 --- a/drivers/clocksource/clksrc-probe.c +++ b/drivers/clocksource/clksrc-probe.c | |||
@@ -20,19 +20,14 @@ | |||
20 | #include <linux/clocksource.h> | 20 | #include <linux/clocksource.h> |
21 | 21 | ||
22 | extern struct of_device_id __clksrc_of_table[]; | 22 | extern struct of_device_id __clksrc_of_table[]; |
23 | extern struct of_device_id __clksrc_ret_of_table[]; | ||
24 | 23 | ||
25 | static const struct of_device_id __clksrc_of_table_sentinel | 24 | static const struct of_device_id __clksrc_of_table_sentinel |
26 | __used __section(__clksrc_of_table_end); | 25 | __used __section(__clksrc_of_table_end); |
27 | 26 | ||
28 | static const struct of_device_id __clksrc_ret_of_table_sentinel | ||
29 | __used __section(__clksrc_ret_of_table_end); | ||
30 | |||
31 | void __init clocksource_probe(void) | 27 | void __init clocksource_probe(void) |
32 | { | 28 | { |
33 | struct device_node *np; | 29 | struct device_node *np; |
34 | const struct of_device_id *match; | 30 | const struct of_device_id *match; |
35 | of_init_fn_1 init_func; | ||
36 | of_init_fn_1_ret init_func_ret; | 31 | of_init_fn_1_ret init_func_ret; |
37 | unsigned clocksources = 0; | 32 | unsigned clocksources = 0; |
38 | int ret; | 33 | int ret; |
@@ -41,15 +36,6 @@ void __init clocksource_probe(void) | |||
41 | if (!of_device_is_available(np)) | 36 | if (!of_device_is_available(np)) |
42 | continue; | 37 | continue; |
43 | 38 | ||
44 | init_func = match->data; | ||
45 | init_func(np); | ||
46 | clocksources++; | ||
47 | } | ||
48 | |||
49 | for_each_matching_node_and_match(np, __clksrc_ret_of_table, &match) { | ||
50 | if (!of_device_is_available(np)) | ||
51 | continue; | ||
52 | |||
53 | init_func_ret = match->data; | 39 | init_func_ret = match->data; |
54 | 40 | ||
55 | ret = init_func_ret(np); | 41 | ret = init_func_ret(np); |