ralink: update patches
[openwrt.git] / target / linux / ramips / patches-3.8 / 0078-clocksource-make-clocksource_of_init-pass-a-device_n.patch
1 From 0e00abf87d50e80b1ce5bda65a4d89adc530ba10 Mon Sep 17 00:00:00 2001
2 From: John Crispin <blogic@openwrt.org>
3 Date: Thu, 23 May 2013 16:58:12 +0200
4 Subject: [PATCH 78/79] clocksource: make clocksource_of_init() pass a
5  device_node pointer
6
7 If we look at the clocksources that are OF enabled we will notice, that they
8 all do a of_find_matching_node() when being called. This patch changes
9 clocksource_of_init() to always pass the struct device_node pointer to the
10 init function.
11
12 Signed-off-by: John Crispin <blogic@openwrt.org>
13 ---
14  drivers/clocksource/clksrc-of.c |    4 ++--
15  1 file changed, 2 insertions(+), 2 deletions(-)
16
17 diff --git a/drivers/clocksource/clksrc-of.c b/drivers/clocksource/clksrc-of.c
18 index bdabdaa..3ef11fb 100644
19 --- a/drivers/clocksource/clksrc-of.c
20 +++ b/drivers/clocksource/clksrc-of.c
21 @@ -26,10 +26,10 @@ void __init clocksource_of_init(void)
22  {
23         struct device_node *np;
24         const struct of_device_id *match;
25 -       void (*init_func)(void);
26 +       void (*init_func)(struct device_node *);
27  
28         for_each_matching_node_and_match(np, __clksrc_of_table, &match) {
29                 init_func = match->data;
30 -               init_func();
31 +               init_func(np);
32         }
33  }
34 -- 
35 1.7.10.4
36