Commit 1cf0203a authored by Uwe Kleine-König's avatar Uwe Kleine-König Committed by Daniel Lezcano

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: default avatarUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: default avatarDaniel Lezcano <daniel.lezcano@linaro.org>
parent 326e31ee
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
#include <linux/clk.h> #include <linux/clk.h>
#include <linux/sched_clock.h> #include <linux/sched_clock.h>
static void timer_get_base_and_rate(struct device_node *np, static void __init timer_get_base_and_rate(struct device_node *np,
void __iomem **base, u32 *rate) void __iomem **base, u32 *rate)
{ {
struct clk *timer_clk; struct clk *timer_clk;
...@@ -59,7 +59,7 @@ static void timer_get_base_and_rate(struct device_node *np, ...@@ -59,7 +59,7 @@ static void timer_get_base_and_rate(struct device_node *np,
panic("No clock nor clock-frequency property for %s", np->name); panic("No clock nor clock-frequency property for %s", np->name);
} }
static void add_clockevent(struct device_node *event_timer) static void __init add_clockevent(struct device_node *event_timer)
{ {
void __iomem *iobase; void __iomem *iobase;
struct dw_apb_clock_event_device *ced; struct dw_apb_clock_event_device *ced;
...@@ -82,7 +82,7 @@ static void add_clockevent(struct device_node *event_timer) ...@@ -82,7 +82,7 @@ static void add_clockevent(struct device_node *event_timer)
static void __iomem *sched_io_base; static void __iomem *sched_io_base;
static u32 sched_rate; static u32 sched_rate;
static void add_clocksource(struct device_node *source_timer) static void __init add_clocksource(struct device_node *source_timer)
{ {
void __iomem *iobase; void __iomem *iobase;
struct dw_apb_clocksource *cs; struct dw_apb_clocksource *cs;
...@@ -117,7 +117,7 @@ static const struct of_device_id sptimer_ids[] __initconst = { ...@@ -117,7 +117,7 @@ static const struct of_device_id sptimer_ids[] __initconst = {
{ /* Sentinel */ }, { /* Sentinel */ },
}; };
static void init_sched_clock(void) static void __init init_sched_clock(void)
{ {
struct device_node *sched_timer; struct device_node *sched_timer;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment