Skip to contentSkip to conversation

ARM: spear: add __init to spear_clocksource_init()

PATCH RESEND In review Alex Elder 2 participants 2 messages Apr 8, 2014 – Apr 9, 2014

Subsystems (3)
lore
Share & tools
lore

Alex Elder

author
#0 lore raw

PATCH RESEND 1/1 ARM: spear: add __init to spear_clocksource_init()

I get a build warning because spear_clocksource_init() calls clocksource_mmio_init(), but it doesn't have an __init annotation. Fix that.

---
 arch/arm/mach-spear/time.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/mach-spear/time.c +1 -1
index 218ba5b..c4d0931 100644
@@ -71,7 +71,7 @@ static void clockevent_set_mode(enum clock_event_mode mode,
 static int clockevent_next_event(unsigned long evt,
 				 struct clock_event_device *clk_event_dev);
 
-static void spear_clocksource_init(void)
+static void __init spear_clocksource_init(void)
 {
 	u32 tick_rate;
 	u16 val;
Signature · 1 line
1.7.9.5
Acked-by on v1 1/1
#1 lore raw
Quoted 14 lines · Alex Elder

I get a build warning because spear_clocksource_init() calls clocksource_mmio_init(), but it doesn't have an __init annotation. Fix that.

---
 arch/arm/mach-spear/time.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/mach-spear/time.c +0 -0
index 218ba5b..c4d0931 100644

arch/arm/mach-spear/time.c static void clockevent_set_mode(enum clock_event_mode mode, · line 77

Quoted 8 lines
arch/arm/mach-spear/time.c +1 -1
@@ -71,7 +71,7 @@ static void clockevent_set_mode(enum clock_event_mode mode,
 static int clockevent_next_event(unsigned long evt,
                                 struct clock_event_device *clk_event_dev);
 
-static void spear_clocksource_init(void)
+static void __init spear_clocksource_init(void)
 {
        u32 tick_rate;
        u16 val;