All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] OMAP4: Keypad: Make keypad_data initdata
@ 2011-07-12  8:42 Shubhrajyoti D
  2011-07-12 15:00 ` Kevin Hilman
  0 siblings, 1 reply; 2+ messages in thread
From: Shubhrajyoti D @ 2011-07-12  8:42 UTC (permalink / raw)
  To: linux-omap; +Cc: Shubhrajyoti D

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

Reported-by: Kevin Hilman <khilman@ti.com>
Signed-off-by: Shubhrajyoti D <shubhrajyoti@ti.com>
---
 arch/arm/mach-omap2/board-4430sdp.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/arch/arm/mach-omap2/board-4430sdp.c b/arch/arm/mach-omap2/board-4430sdp.c
index 47e6ab9..2b28c7e 100644
--- a/arch/arm/mach-omap2/board-4430sdp.c
+++ b/arch/arm/mach-omap2/board-4430sdp.c
@@ -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),
-- 
1.7.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] OMAP4: Keypad: Make keypad_data initdata
  2011-07-12  8:42 [PATCH] OMAP4: Keypad: Make keypad_data initdata Shubhrajyoti D
@ 2011-07-12 15:00 ` Kevin Hilman
  0 siblings, 0 replies; 2+ messages in thread
From: Kevin Hilman @ 2011-07-12 15:00 UTC (permalink / raw)
  To: Shubhrajyoti D; +Cc: linux-omap

Shubhrajyoti D <shubhrajyoti@ti.com> writes:

> The keypad data is accessed only at init so making it initdata.
> This removes the section mismatch warning.
>
> Reported-by: Kevin Hilman <khilman@ti.com>
> Signed-off-by: Shubhrajyoti D <shubhrajyoti@ti.com>

Please Cc: linux-arm-kernel on upstream patches.

Also, as this is specific to a particular board, it is common to note
that in the subject prefix, e.g:

OMAP4: 4430SDP: keypad: ...

Thanks,

Kevin

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-07-12 15:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-07-12  8:42 [PATCH] OMAP4: Keypad: Make keypad_data initdata Shubhrajyoti D
2011-07-12 15:00 ` Kevin Hilman

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.