summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Liu <r64343@freescale.com>2010-08-11 13:03:11 +0800
committerFrank Li <Frank.Li@freescale.com>2010-08-11 13:30:30 +0800
commitf81d4ccd8674acdc148c1cae9bcf038e22a53677 (patch)
treefaeb4491e933e863774ba9fa69dbf312379330cc
parentce05959b8b887839dfc451f219b7975dbf15226a (diff)
ENGR00126161 MX28:Fix section mismatch warning
Fix the following miss match warning: WARNING: vmlinux.o(.text+0xe220): Section mismatch in reference from the function i2c_device_init() to the (unknown reference) .init.data:(unknown) The function i2c_device_init() references the (unknown reference) __initdata (unknown). This is often because i2c_device_init lacks a __initdata annotation or the annotation of (unknown) is wrong Signed-off-by:Jason Liu <r64343@freescale.com> (cherry picked from commit fd734e328615e4cbebe1fb7de8dec397b0648e28)
-rw-r--r--arch/arm/mach-mx28/mx28evk.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-mx28/mx28evk.c b/arch/arm/mach-mx28/mx28evk.c
index 768b21a5ffe5..37beb27f7065 100644
--- a/arch/arm/mach-mx28/mx28evk.c
+++ b/arch/arm/mach-mx28/mx28evk.c
@@ -39,7 +39,7 @@ static struct i2c_board_info __initdata mxs_i2c_device[] = {
{ I2C_BOARD_INFO("sgtl5000-i2c", 0x14), .flags = I2C_M_TEN }
};
-static void i2c_device_init(void)
+static void __init i2c_device_init(void)
{
i2c_register_board_info(0, mxs_i2c_device, ARRAY_SIZE(mxs_i2c_device));
}