summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorYang Shi <yang.shi@windriver.com>2016-04-26 09:49:38 -0700
committerMichael Ellerman <mpe@ellerman.id.au>2017-03-31 23:09:40 +1100
commitadec9a2e7ca3b4193818f9a7b39563851b180711 (patch)
treea4268f01f4d3f65a298b372bdb23a9dbc601a7d4 /arch
parentbc183779dedf969533f19cc957a4a02b69fc44d3 (diff)
downloadlinux-adec9a2e7ca3b4193818f9a7b39563851b180711.tar.bz2
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 <yang.shi@windriver.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'arch')
-rw-r--r--arch/powerpc/platforms/44x/sam440ep.c2
1 files changed, 1 insertions, 1 deletions
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);
}