From patchwork Fri Jul 22 19:47:22 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Felipe Balbi X-Patchwork-Id: 1000832 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 p6MJlqcm028870 for ; Fri, 22 Jul 2011 19:47:52 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755291Ab1GVTri (ORCPT ); Fri, 22 Jul 2011 15:47:38 -0400 Received: from na3sys009aog109.obsmtp.com ([74.125.149.201]:59218 "EHLO na3sys009aog109.obsmtp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755132Ab1GVTrf (ORCPT ); Fri, 22 Jul 2011 15:47:35 -0400 Received: from mail-ew0-f48.google.com ([209.85.215.48]) (using TLSv1) by na3sys009aob109.postini.com ([74.125.148.12]) with SMTP ID DSNKTinT1cMVSU9Kd7xqwMBc10m9cn10Pd6l@postini.com; Fri, 22 Jul 2011 12:47:34 PDT Received: by mail-ew0-f48.google.com with SMTP id 22so1777080ewy.7 for ; Fri, 22 Jul 2011 12:47:33 -0700 (PDT) Received: by 10.204.42.21 with SMTP id q21mr562731bke.186.1311364053668; Fri, 22 Jul 2011 12:47:33 -0700 (PDT) Received: from localhost (cs181221225.pp.htv.fi [82.181.221.225]) by mx.google.com with ESMTPS id l21sm598661bkt.35.2011.07.22.12.47.32 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 22 Jul 2011 12:47:33 -0700 (PDT) From: Felipe Balbi To: Linux Kernel Mailing List Cc: Linux ARM Kernel Mailing List , Linux OMAP Mailing List , Tony Lindgren , Russell King , devicetree-discuss@lists.ozlabs.org, Felipe Balbi , Grant Likely Subject: [PATCH 2/2] arm: omap: mark dt_compat __initconst Date: Fri, 22 Jul 2011 22:47:22 +0300 Message-Id: <1311364042-8325-2-git-send-email-balbi@ti.com> X-Mailer: git-send-email 1.7.6 In-Reply-To: <1311364042-8325-1-git-send-email-balbi@ti.com> References: <1311364042-8325-1-git-send-email-balbi@ti.com> Organization: Texas Instruments\n 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]); Fri, 22 Jul 2011 19:47:52 +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. Cc: Grant Likely Signed-off-by: Felipe Balbi --- 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 };