summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-imx/mach-imx53.c
diff options
context:
space:
mode:
authorShawn Guo <shawn.guo@linaro.org>2013-12-09 14:04:35 +0800
committerShawn Guo <shawn.guo@linaro.org>2013-12-31 09:36:33 +0800
commitdf79bc9c274f2a511d350a99439591ea0415aea4 (patch)
treecfda852989ba00494e582226919715475643910f /arch/arm/mach-imx/mach-imx53.c
parentd5e9b2430433473558f5ec0aae8e1b30729d1cf2 (diff)
downloadop-kernel-dev-df79bc9c274f2a511d350a99439591ea0415aea4.zip
op-kernel-dev-df79bc9c274f2a511d350a99439591ea0415aea4.tar.gz
ARM: imx: use __initconst for const init definition
0-DAY kernel build testing backend reports the following. scripts/checkpatch.pl 0001-ARM-imx-add-support-code-for-IMX50-based-machines.patch # many are suggestions rather than must-fix ERROR: Use of const init definition must use __initconst #80: arch/arm/mach-imx/mach-imx50.c:26: +static const char *imx50_dt_board_compat[] __initdata = { While at it, fix the error globally for IMX platform. Reported-by: Fengguang Wu <fengguang.wu@intel.com> Acked-by: Greg Ungerer <gerg@uclinux.org> Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
Diffstat (limited to 'arch/arm/mach-imx/mach-imx53.c')
-rw-r--r--arch/arm/mach-imx/mach-imx53.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-imx/mach-imx53.c b/arch/arm/mach-imx/mach-imx53.c
index c9c4d8d..6585090 100644
--- a/arch/arm/mach-imx/mach-imx53.c
+++ b/arch/arm/mach-imx/mach-imx53.c
@@ -31,7 +31,7 @@ static void __init imx53_dt_init(void)
of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL);
}
-static const char *imx53_dt_board_compat[] __initdata = {
+static const char *imx53_dt_board_compat[] __initconst = {
"fsl,imx53",
NULL
};
OpenPOWER on IntegriCloud