aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap2
diff options
context:
space:
mode:
authorShubhrajyoti D <shubhrajyoti@ti.com>2012-09-12 10:37:04 -0400
committerTony Lindgren <tony@atomide.com>2012-10-08 17:07:21 -0400
commit12aee6c69f245189dc015227d1c27240a832f58a (patch)
treef9a676d099deae3cdca684efdd58127d582ce4a1 /arch/arm/mach-omap2
parent7a2852908e37e20be065e7765806daf1df077496 (diff)
ARM: OMAP: rx51: Fix a section mismatch warn
rx51_si4713_dev is referenced only from rx51_init_si4713. So the memory for rx51_si4713_dev can be safely freed after init. Also it references rx51_si4713_board_info which is __initdata_or_module. fixes the below warning. WARNING: vmlinux.o(.data+0x30958): Section mismatch in reference from the variable rx51_si4713_dev to the (unknown reference) .init.data:(unknown) The variable rx51_si4713_dev references the (unknown reference) __initdata (unknown) 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 Reported-by: Wolfram Sang <w.sang@pengutronix.de> Signed-off-by: Shubhrajyoti D <shubhrajyoti@ti.com> Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch/arm/mach-omap2')
-rw-r--r--arch/arm/mach-omap2/board-rx51-peripherals.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-omap2/board-rx51-peripherals.c b/arch/arm/mach-omap2/board-rx51-peripherals.c
index ed85fb898c7f..020e03c95bfe 100644
--- a/arch/arm/mach-omap2/board-rx51-peripherals.c
+++ b/arch/arm/mach-omap2/board-rx51-peripherals.c
@@ -748,7 +748,7 @@ static struct radio_si4713_platform_data rx51_si4713_data __initdata_or_module =
748 .subdev_board_info = &rx51_si4713_board_info, 748 .subdev_board_info = &rx51_si4713_board_info,
749}; 749};
750 750
751static struct platform_device rx51_si4713_dev = { 751static struct platform_device rx51_si4713_dev __initdata_or_module = {
752 .name = "radio-si4713", 752 .name = "radio-si4713",
753 .id = -1, 753 .id = -1,
754 .dev = { 754 .dev = {