Commit adec9a2e authored by Yang Shi's avatar Yang Shi Committed by Michael Ellerman

powerpc/4xx: Make sam440ep_setup_rtc() init

sam440ep_setup_rtc() is just called by machine_device_initcall() so make
it __init.
Signed-off-by: default avatarYang Shi <yang.shi@windriver.com>
Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
parent bc183779
...@@ -70,7 +70,7 @@ static struct i2c_board_info sam440ep_rtc_info = { ...@@ -70,7 +70,7 @@ static struct i2c_board_info sam440ep_rtc_info = {
.irq = -1, .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); return i2c_register_board_info(0, &sam440ep_rtc_info, 1);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment