From patchwork Tue Jul 12 08:42:33 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shubhrajyoti Datta X-Patchwork-Id: 967592 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter2.kernel.org (8.14.4/8.14.4) with ESMTP id p6C8gixA030381 for ; Tue, 12 Jul 2011 08:42:44 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751867Ab1GLImn (ORCPT ); Tue, 12 Jul 2011 04:42:43 -0400 Received: from arroyo.ext.ti.com ([192.94.94.40]:58695 "EHLO arroyo.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751637Ab1GLImn (ORCPT ); Tue, 12 Jul 2011 04:42:43 -0400 Received: from dbdp20.itg.ti.com ([172.24.170.38]) by arroyo.ext.ti.com (8.13.7/8.13.7) with ESMTP id p6C8gdA9006430 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Tue, 12 Jul 2011 03:42:42 -0500 Received: from dbde70.ent.ti.com (localhost [127.0.0.1]) by dbdp20.itg.ti.com (8.13.8/8.13.8) with ESMTP id p6C8gd8s004499 for ; Tue, 12 Jul 2011 14:12:39 +0530 (IST) Received: from dbdp31.itg.ti.com (172.24.170.98) by DBDE70.ent.ti.com (172.24.170.148) with Microsoft SMTP Server id 8.3.106.1; Tue, 12 Jul 2011 14:12:38 +0530 Received: from a0393217ubnlt.india.ti.com (omapbord.india.ti.com [172.24.190.99]) by dbdp31.itg.ti.com (8.13.8/8.13.8) with ESMTP id p6C8gZfm022575; Tue, 12 Jul 2011 14:12:37 +0530 (IST) From: Shubhrajyoti D To: CC: Shubhrajyoti D Subject: [PATCH] OMAP4: Keypad: Make keypad_data initdata Date: Tue, 12 Jul 2011 14:12:33 +0530 Message-ID: <1310460153-10512-1-git-send-email-shubhrajyoti@ti.com> X-Mailer: git-send-email 1.7.1 MIME-Version: 1.0 Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter2.kernel.org [140.211.167.43]); Tue, 12 Jul 2011 08:42:44 +0000 (UTC) The keypad data is accessed only at init so making it initdata. This removes the section mismatch warning. Reported-by: Kevin Hilman Signed-off-by: Shubhrajyoti D --- 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),