Message ID | 1310460153-10512-1-git-send-email-shubhrajyoti@ti.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
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 -- To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
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),
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(-)