ARM: omap: fix section mismatch errors in TWL PMIC driver
authorRussell King <rmk+kernel@arm.linux.org.uk>
Tue, 7 Feb 2012 10:00:34 +0000 (10:00 +0000)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Mon, 13 Feb 2012 10:00:35 +0000 (10:00 +0000)
commita0bb10e86642064f6cec9e23f523127e5cfbe609
tree9268898b0563af220eb7481b9e7a55314763fecd
parent0bf68f53f164e169c2bc77f707338fc595b6ccfc
ARM: omap: fix section mismatch errors in TWL PMIC driver

WARNING: drivers/mfd/built-in.o(.devinit.text+0x258): Section mismatch in reference from the function twl_probe() to the function .init.text:twl4030_power_init()
The function __devinit twl_probe() references
a function __init twl4030_power_init().
If twl4030_power_init is only used by twl_probe then
annotate twl4030_power_init with a matching annotation.

twl4030_power_init() references other __init marked functions, so
these too must become __devinit.

Acked-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
drivers/mfd/twl4030-power.c