powerpc/4xx: Make sam440ep_setup_rtc() init
authorYang Shi <yang.shi@windriver.com>
Tue, 26 Apr 2016 16:49:38 +0000 (09:49 -0700)
committerMichael Ellerman <mpe@ellerman.id.au>
Fri, 31 Mar 2017 12:09:40 +0000 (23:09 +1100)
sam440ep_setup_rtc() is just called by machine_device_initcall() so make
it __init.

Signed-off-by: Yang Shi <yang.shi@windriver.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/platforms/44x/sam440ep.c

index 688ffeab06990be3a1a6ddc2350e5d6dd6036c7e..55fed5e4de14432bd9c0606357aede54c273e83e 100644 (file)
@@ -70,7 +70,7 @@ static struct i2c_board_info sam440ep_rtc_info = {
        .irq = -1,
 };
 
-static int sam440ep_setup_rtc(void)
+static int __init sam440ep_setup_rtc(void)
 {
        return i2c_register_board_info(0, &sam440ep_rtc_info, 1);
 }