ARM: spear: add __init to spear_clocksource_init()
authorAlex Elder <elder@linaro.org>
Wed, 9 Apr 2014 14:01:12 +0000 (09:01 -0500)
committerArnd Bergmann <arnd@arndb.de>
Thu, 24 Apr 2014 13:28:00 +0000 (15:28 +0200)
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 <elder@linaro.org>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
arch/arm/mach-spear/time.c

index 218ba5b67d9298bbd0bc8716fe6e107fe5788782..c4d0931fc6ee195ef701804a8ab452a1abfb2fc5 100644 (file)
@@ -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;