powerpc/4xx: make sam440ep_setup_rtc init
Subsystems (2)
PATCH 1/1 powerpc/4xx: make sam440ep_setup_rtc init
sam440ep_setup_rtc is just called by machine_device_initcall, and it calls i2c_register_board_info which is init too, so the lack of __init may cause mismatch warning when linking kernel.
Signed-off-by Yang Shi <[email protected]>
--- arch/powerpc/platforms/44x/sam440ep.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/powerpc/platforms/44x/sam440ep.c +1 -1
@@ -72,7 +72,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 ); }
Signature · 1 line
2.0.2
Michael Ellerman
AppliedQuoted 5 lines · yshi
sam440ep_setup_rtcis just called bymachine_device_initcall, and it callsi2c_register_board_infowhich is init too, so the lack of__initmay cause mismatch warning when linking kernel.Signed-off-by Yang Shi <[email protected]>
Applied to powerpc next, thanks.
https://git.kernel.org/powerpc/c/adec9a2e7ca3b4193818f9a7b39563
cheers