Skip to contentSkip to conversation

OMAP4: 4430SDP: Keypad: Make keypad_data initdata

PATCH New Shubhrajyoti D 2 participants 2 messages Jul 12, 2011

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 OMAP4: 4430SDP: Keypad: Make keypad_data initdata

The keypad data is accessed only at init so making it initdata. This removes the section mismatch warning.

---
 arch/arm/mach-omap2/board-4430sdp.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
arch/arm/mach-omap2/board-4430sdp.c +1 -1
index 47e6ab9..2b28c7e 100644
@@ -195,7 +195,7 @@ static struct omap4_keypad_platform_data sdp4430_keypad_data = {
 	.cols			= 8,
 };
 
-static struct omap_board_data keypad_data = {
+static struct omap_board_data keypad_data __initdata = {
 	.id	    = 1,
 	.pads	 = keypad_pads,
 	.pads_cnt       = ARRAY_SIZE(keypad_pads),
Signature · 1 line
1.7.1
#1 lore raw

PATCH 1/1 OMAP4: 4430SDP: Keypad: Make keypad_data initdata

Quoted 5 lines · Shubhrajyoti D

The keypad data is accessed only at init so making it initdata. This removes the section mismatch warning.

Tony, if it's not too late, this should probably queue for v3.1 so that it goes in at the same time as the patch that introduces this compile warning.

Kevin