From: Yang Shi Date: Tue, 26 Apr 2016 16:49:38 +0000 (-0700) Subject: powerpc/4xx: Make sam440ep_setup_rtc() init X-Git-Tag: v4.12-rc1~93^2~157 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=adec9a2e7ca3b4193818f9a7b39563851b180711;p=karo-tx-linux.git powerpc/4xx: Make sam440ep_setup_rtc() init sam440ep_setup_rtc() is just called by machine_device_initcall() so make it __init. Signed-off-by: Yang Shi Signed-off-by: Michael Ellerman --- diff --git a/arch/powerpc/platforms/44x/sam440ep.c b/arch/powerpc/platforms/44x/sam440ep.c index 688ffeab0699..55fed5e4de14 100644 --- a/arch/powerpc/platforms/44x/sam440ep.c +++ b/arch/powerpc/platforms/44x/sam440ep.c @@ -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); }