Commit 1cf0203ac9e3d7abed67196db494469b24fe09e3
Committed by
Daniel Lezcano
1 parent
326e31eebe
Exists in
smarc-imx_3.14.28_1.0.0_ga
and in
1 other branch
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>
Showing 1 changed file with 5 additions and 5 deletions Side-by-side Diff
drivers/clocksource/dw_apb_timer_of.c
... | ... | @@ -23,7 +23,7 @@ |
23 | 23 | #include <linux/clk.h> |
24 | 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 | 27 | void __iomem **base, u32 *rate) |
28 | 28 | { |
29 | 29 | struct clk *timer_clk; |
30 | 30 | |
... | ... | @@ -55,11 +55,11 @@ |
55 | 55 | |
56 | 56 | try_clock_freq: |
57 | 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 | 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 | 64 | void __iomem *iobase; |
65 | 65 | struct dw_apb_clock_event_device *ced; |
... | ... | @@ -82,7 +82,7 @@ |
82 | 82 | static void __iomem *sched_io_base; |
83 | 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 | 87 | void __iomem *iobase; |
88 | 88 | struct dw_apb_clocksource *cs; |
... | ... | @@ -117,7 +117,7 @@ |
117 | 117 | { /* Sentinel */ }, |
118 | 118 | }; |
119 | 119 | |
120 | -static void init_sched_clock(void) | |
120 | +static void __init init_sched_clock(void) | |
121 | 121 | { |
122 | 122 | struct device_node *sched_timer; |
123 | 123 |