diff options
author | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2013-10-01 04:38:12 -0400 |
---|---|---|
committer | Daniel Lezcano <daniel.lezcano@linaro.org> | 2013-10-02 05:43:15 -0400 |
commit | 1cf0203ac9e3d7abed67196db494469b24fe09e3 (patch) | |
tree | 2ed6c2b170246d7321aa96dfe24813603760ed87 /drivers/clocksource | |
parent | 326e31eebe61dc838e031ea16968b2cfb43443e3 (diff) |
clocksource: dw_apb_timer_of: Mark a few more functions as __init
These are all only called by dw_apb_timer_init which is an __init
function, too
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Diffstat (limited to 'drivers/clocksource')
-rw-r--r-- | drivers/clocksource/dw_apb_timer_of.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/clocksource/dw_apb_timer_of.c b/drivers/clocksource/dw_apb_timer_of.c index 482618b59fa4..45ba8aecc729 100644 --- a/drivers/clocksource/dw_apb_timer_of.c +++ b/drivers/clocksource/dw_apb_timer_of.c | |||
@@ -23,7 +23,7 @@ | |||
23 | #include <linux/clk.h> | 23 | #include <linux/clk.h> |
24 | #include <linux/sched_clock.h> | 24 | #include <linux/sched_clock.h> |
25 | 25 | ||
26 | static void timer_get_base_and_rate(struct device_node *np, | 26 | static void __init timer_get_base_and_rate(struct device_node *np, |
27 | void __iomem **base, u32 *rate) | 27 | void __iomem **base, u32 *rate) |
28 | { | 28 | { |
29 | struct clk *timer_clk; | 29 | struct clk *timer_clk; |
@@ -55,11 +55,11 @@ static void timer_get_base_and_rate(struct device_node *np, | |||
55 | 55 | ||
56 | try_clock_freq: | 56 | try_clock_freq: |
57 | if (of_property_read_u32(np, "clock-freq", rate) && | 57 | if (of_property_read_u32(np, "clock-freq", rate) && |
58 | of_property_read_u32(np, "clock-frequency", rate)) | 58 | of_property_read_u32(np, "clock-frequency", rate)) |
59 | panic("No clock nor clock-frequency property for %s", np->name); | 59 | panic("No clock nor clock-frequency property for %s", np->name); |
60 | } | 60 | } |
61 | 61 | ||
62 | static void add_clockevent(struct device_node *event_timer) | 62 | static void __init add_clockevent(struct device_node *event_timer) |
63 | { | 63 | { |
64 | void __iomem *iobase; | 64 | void __iomem *iobase; |
65 | struct dw_apb_clock_event_device *ced; | 65 | struct dw_apb_clock_event_device *ced; |
@@ -82,7 +82,7 @@ static void add_clockevent(struct device_node *event_timer) | |||
82 | static void __iomem *sched_io_base; | 82 | static void __iomem *sched_io_base; |
83 | static u32 sched_rate; | 83 | static u32 sched_rate; |
84 | 84 | ||
85 | static void add_clocksource(struct device_node *source_timer) | 85 | static void __init add_clocksource(struct device_node *source_timer) |
86 | { | 86 | { |
87 | void __iomem *iobase; | 87 | void __iomem *iobase; |
88 | struct dw_apb_clocksource *cs; | 88 | struct dw_apb_clocksource *cs; |
@@ -117,7 +117,7 @@ static const struct of_device_id sptimer_ids[] __initconst = { | |||
117 | { /* Sentinel */ }, | 117 | { /* Sentinel */ }, |
118 | }; | 118 | }; |
119 | 119 | ||
120 | static void init_sched_clock(void) | 120 | static void __init init_sched_clock(void) |
121 | { | 121 | { |
122 | struct device_node *sched_timer; | 122 | struct device_node *sched_timer; |
123 | 123 | ||