]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ENGR00176812-11 mx6 sabreauto: remove section mismatch warning
authorLily Zhang <r58066@freescale.com>
Fri, 9 Mar 2012 16:36:47 +0000 (00:36 +0800)
committerOliver Wendt <ow@karo-electronics.de>
Mon, 30 Sep 2013 12:11:14 +0000 (14:11 +0200)
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 <r58066@freescale.com>
arch/arm/mach-mx6/board-mx6q_sabreauto.c

index fe7431ff7e2e74722e02581b4abd12966facc288..63bd843cd595f4f87ccd4f46ca50c14afab9f581 100644 (file)
@@ -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;