summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobby Cai <R63905@freescale.com>2012-06-18 19:46:41 +0800
committerRobby Cai <R63905@freescale.com>2012-06-18 20:31:48 +0800
commit45b2fd28854a4128c1a0031430522b534274ac9d (patch)
tree238dd4e9c5d76112efd361ef61d1b5ad0cfa1ee0
parent609523acf82444038e22db4f38205c7cb5d4120d (diff)
ENGR00213997: Fix Section Mismatch warning
Fix: WARNING: vmlinux.o(.data+0x8c28): Section mismatch in reference from the variable mx6_gpmi_nand_platform_data to the function .init.text:gpmi_nand_platform_init() The variable mx6_gpmi_nand_platform_data references the function __init gpmi_nand_platform_init() If the reference is valid then annotate the variable with __init* or __refdata (see linux/init.h) or name the variable: *_template, *_timer, *_sht, *_ops, *_probe, *_probe_one, *_console Signed-off-by: Robby Cai <R63905@freescale.com>
-rw-r--r--arch/arm/mach-mx6/board-mx6q_arm2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-mx6/board-mx6q_arm2.c b/arch/arm/mach-mx6/board-mx6q_arm2.c
index 0d9c84772edc..1e87db50e1b1 100644
--- a/arch/arm/mach-mx6/board-mx6q_arm2.c
+++ b/arch/arm/mach-mx6/board-mx6q_arm2.c
@@ -320,7 +320,7 @@ static int __init gpmi_nand_platform_init(void)
}
static struct gpmi_nand_platform_data
-mx6_gpmi_nand_platform_data = {
+mx6_gpmi_nand_platform_data __initdata = {
.platform_init = gpmi_nand_platform_init,
.min_prop_delay_in_ns = 5,
.max_prop_delay_in_ns = 9,