From: Lily Zhang Date: Fri, 9 Mar 2012 16:36:47 +0000 (+0800) Subject: ENGR00176812-11 mx6 sabreauto: remove section mismatch warning X-Git-Tag: v3.0.35-fsl~1327 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=afa96f17c0ad5d6707bff4a79716103b3c58edac;p=karo-tx-linux.git ENGR00176812-11 mx6 sabreauto: remove section mismatch warning Remove the followinig section mismatch warning WARNING: vmlinux.o(.text+0x1bdf8): Section mismatch in reference from the function gpmi_nand_platform_init() to the (unknown reference) .init.data:(unknown) The function gpmi_nand_platform_init() references the (unknown reference) __initdata (unknown). This is often because gpmi_nand_platform_init lacks a __initdata annotation or the annotation of (unknown) is wrong. Signed-off-by: Lily Zhang --- diff --git a/arch/arm/mach-mx6/board-mx6q_sabreauto.c b/arch/arm/mach-mx6/board-mx6q_sabreauto.c index fe7431ff7e2e..63bd843cd595 100644 --- a/arch/arm/mach-mx6/board-mx6q_sabreauto.c +++ b/arch/arm/mach-mx6/board-mx6q_sabreauto.c @@ -259,7 +259,7 @@ static const struct esdhc_platform_data mx6q_sabreauto_sd1_data __initconst = { }; -static int gpmi_nand_platform_init(void) +static int __init gpmi_nand_platform_init(void) { iomux_v3_cfg_t *nand_pads = NULL; u32 nand_pads_cnt;