ARM: spear: add __init to spear_clocksource_init()
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.
Signed-off-by Alex Elder <[email protected]>
--- arch/arm/mach-spear/time.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
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;
Signature · 1 line
1.7.9.5
Quoted 14 lines · Alex Elder
I get a build warning because
spear_clocksource_init()callsclocksource_mmio_init(), but it doesn't have an__initannotation. Fix that.Signed-off-by Alex Elder <[email protected]>--- arch/arm/mach-spear/time.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)arch/arm/mach-spear/time.c +0
-0
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;
Acked-by Viresh Kumar <[email protected]>