diff options
author | Shawn Guo <shawn.guo@linaro.org> | 2013-12-09 01:04:35 -0500 |
---|---|---|
committer | Shawn Guo <shawn.guo@linaro.org> | 2013-12-30 20:36:33 -0500 |
commit | df79bc9c274f2a511d350a99439591ea0415aea4 (patch) | |
tree | cfda852989ba00494e582226919715475643910f /arch/arm/mach-imx/imx51-dt.c | |
parent | d5e9b2430433473558f5ec0aae8e1b30729d1cf2 (diff) |
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/imx51-dt.c')
-rw-r--r-- | arch/arm/mach-imx/imx51-dt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-imx/imx51-dt.c b/arch/arm/mach-imx/imx51-dt.c index bece8a65e6f0..0230d78d1413 100644 --- a/arch/arm/mach-imx/imx51-dt.c +++ b/arch/arm/mach-imx/imx51-dt.c | |||
@@ -29,7 +29,7 @@ static void __init imx51_dt_init(void) | |||
29 | platform_device_register_full(&devinfo); | 29 | platform_device_register_full(&devinfo); |
30 | } | 30 | } |
31 | 31 | ||
32 | static const char *imx51_dt_board_compat[] __initdata = { | 32 | static const char *imx51_dt_board_compat[] __initconst = { |
33 | "fsl,imx51", | 33 | "fsl,imx51", |
34 | NULL | 34 | NULL |
35 | }; | 35 | }; |