From patchwork Thu Jun 9 21:59:26 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Felipe Balbi X-Patchwork-Id: 867102 Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) by demeter2.kernel.org (8.14.4/8.14.4) with ESMTP id p59M0JQe024806 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Thu, 9 Jun 2011 22:00:40 GMT Received: from canuck.infradead.org ([2001:4978:20e::1]) by merlin.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1QUnGR-00030u-3F; Thu, 09 Jun 2011 21:59:43 +0000 Received: from localhost ([127.0.0.1] helo=canuck.infradead.org) by canuck.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1QUnGQ-0006hF-Lz; Thu, 09 Jun 2011 21:59:42 +0000 Received: from na3sys009aog116.obsmtp.com ([74.125.149.240]) by canuck.infradead.org with smtps (Exim 4.76 #1 (Red Hat Linux)) id 1QUnGN-0006gw-HK for linux-arm-kernel@lists.infradead.org; Thu, 09 Jun 2011 21:59:40 +0000 Received: from mail-bw0-f49.google.com ([209.85.214.49]) (using TLSv1) by na3sys009aob116.postini.com ([74.125.148.12]) with SMTP ID DSNKTfFCRMT10TYZwEu6nJEwKyp2tkdFT3ID@postini.com; Thu, 09 Jun 2011 14:59:39 PDT Received: by bwz1 with SMTP id 1so2315157bwz.36 for ; Thu, 09 Jun 2011 14:59:31 -0700 (PDT) Received: by 10.204.57.135 with SMTP id c7mr1196408bkh.88.1307656771195; Thu, 09 Jun 2011 14:59:31 -0700 (PDT) Received: from localhost (cs181221225.pp.htv.fi. [82.181.221.225]) by mx.google.com with ESMTPS id a28sm53569fak.1.2011.06.09.14.59.28 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 09 Jun 2011 14:59:29 -0700 (PDT) From: Felipe Balbi To: Tony Lindgren Subject: [PATCH] arm: omap: mark dt_compat __initconst Date: Fri, 10 Jun 2011 00:59:26 +0300 Message-Id: <1307656766-20083-1-git-send-email-balbi@ti.com> X-Mailer: git-send-email 1.7.6.rc1 Organization: Texas Instruments\n X-CRM114-Version: 20090807-BlameThorstenAndJenny ( TRE 0.7.6 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20110609_175939_841767_EED5ABA7 X-CRM114-Status: GOOD ( 12.46 ) X-Spam-Score: -2.3 (--) X-Spam-Report: SpamAssassin version 3.3.1 on canuck.infradead.org summary: Content analysis details: (-2.3 points) pts rule name description ---- ---------------------- -------------------------------------------------- -2.3 RCVD_IN_DNSWL_MED RBL: Sender listed at http://www.dnswl.org/, medium trust [74.125.149.240 listed in list.dnswl.org] Cc: Linux OMAP Mailing List , Felipe Balbi , Linux ARM Kernel Mailing List X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: linux-arm-kernel-bounces@lists.infradead.org Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter2.kernel.org [140.211.167.43]); Thu, 09 Jun 2011 22:00:40 +0000 (UTC) we have a special section for const data which is only needed during init, that's __initconst. Use that instead of __initdata which is for non-const data. Signed-off-by: Felipe Balbi --- This patch is against devel-devicetree branch from linux-omap. arch/arm/mach-omap2/board-igep0020.c | 2 +- arch/arm/mach-omap2/board-igep0030.c | 2 +- arch/arm/mach-omap2/board-omap3beagle.c | 2 +- arch/arm/mach-omap2/board-omap4panda.c | 2 +- arch/arm/mach-omap2/board-overo.c | 2 +- arch/arm/mach-omap2/board-zoom.c | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/arch/arm/mach-omap2/board-igep0020.c b/arch/arm/mach-omap2/board-igep0020.c index eb198a6..d9888eb 100644 --- a/arch/arm/mach-omap2/board-igep0020.c +++ b/arch/arm/mach-omap2/board-igep0020.c @@ -703,7 +703,7 @@ static void __init igep2_init(void) } -static const char *igep2_dt_compat[] __initdata = { +static const char *igep2_dt_compat[] __initconst = { "ISEE,igep-v2", NULL }; diff --git a/arch/arm/mach-omap2/board-igep0030.c b/arch/arm/mach-omap2/board-igep0030.c index e13fdf0..984e4a1 100644 --- a/arch/arm/mach-omap2/board-igep0030.c +++ b/arch/arm/mach-omap2/board-igep0030.c @@ -447,7 +447,7 @@ static void __init igep3_init(void) } -static const char *igep3_dt_compat[] __initdata = { +static const char *igep3_dt_compat[] __initconst = { "ISEE,igep-v3", NULL }; diff --git a/arch/arm/mach-omap2/board-omap3beagle.c b/arch/arm/mach-omap2/board-omap3beagle.c index b9ad453..85ca38f 100644 --- a/arch/arm/mach-omap2/board-omap3beagle.c +++ b/arch/arm/mach-omap2/board-omap3beagle.c @@ -681,7 +681,7 @@ static void __init omap3_beagle_init(void) beagle_opp_init(); } -static const char *omap3_beagle_dt_match[] __initdata = { +static const char *omap3_beagle_dt_match[] __initconst = { "ti,omap3-beagle", NULL }; diff --git a/arch/arm/mach-omap2/board-omap4panda.c b/arch/arm/mach-omap2/board-omap4panda.c index 47738db..58adeaf 100644 --- a/arch/arm/mach-omap2/board-omap4panda.c +++ b/arch/arm/mach-omap2/board-omap4panda.c @@ -741,7 +741,7 @@ static void __init omap4_panda_map_io(void) omap44xx_map_common_io(); } -static const char *omap4_panda_match[] __initdata = { +static const char *omap4_panda_match[] __initconst = { "ti,omap4-panda", NULL, }; diff --git a/arch/arm/mach-omap2/board-overo.c b/arch/arm/mach-omap2/board-overo.c index e91942a..e88f846 100644 --- a/arch/arm/mach-omap2/board-overo.c +++ b/arch/arm/mach-omap2/board-overo.c @@ -785,7 +785,7 @@ static void __init overo_init(void) "OVERO_GPIO_USBH_CPEN\n"); } -static const char *omap3_overo_dt_match[] __initdata = { +static const char *omap3_overo_dt_match[] __initconst = { "gumstix,omap3-overo", NULL }; diff --git a/arch/arm/mach-omap2/board-zoom.c b/arch/arm/mach-omap2/board-zoom.c index 6cc9569..0627ea2 100644 --- a/arch/arm/mach-omap2/board-zoom.c +++ b/arch/arm/mach-omap2/board-zoom.c @@ -132,7 +132,7 @@ static void __init omap_zoom_init(void) zoom_display_init(); } -static const char *zoom3_dt_match[] __initdata = { +static const char *zoom3_dt_match[] __initconst = { "ti,zoom3", NULL };