aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYang Shi <[email protected]>2016-04-26 09:49:38 -0700
committerMichael Ellerman <[email protected]>2017-03-31 23:09:40 +1100
commitadec9a2e7ca3b4193818f9a7b39563851b180711 (patch)
treea4268f01f4d3f65a298b372bdb23a9dbc601a7d4
parentbc183779dedf969533f19cc957a4a02b69fc44d3 (diff)
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 <[email protected]> Signed-off-by: Michael Ellerman <[email protected]>
-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);
}