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 | |
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')
-rw-r--r-- | arch/arm/mach-imx/imx31-dt.c | 2 | ||||
-rw-r--r-- | arch/arm/mach-imx/imx51-dt.c | 2 | ||||
-rw-r--r-- | arch/arm/mach-imx/mach-imx50.c | 2 | ||||
-rw-r--r-- | arch/arm/mach-imx/mach-imx53.c | 2 | ||||
-rw-r--r-- | arch/arm/mach-imx/mach-imx6q.c | 2 | ||||
-rw-r--r-- | arch/arm/mach-imx/mach-imx6sl.c | 2 | ||||
-rw-r--r-- | arch/arm/mach-imx/mach-vf610.c | 2 |
7 files changed, 7 insertions, 7 deletions
diff --git a/arch/arm/mach-imx/imx31-dt.c b/arch/arm/mach-imx/imx31-dt.c index 818a1cc2fe45..e1e70ef7bc2d 100644 --- a/arch/arm/mach-imx/imx31-dt.c +++ b/arch/arm/mach-imx/imx31-dt.c | |||
@@ -25,7 +25,7 @@ static void __init imx31_dt_init(void) | |||
25 | of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL); | 25 | of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL); |
26 | } | 26 | } |
27 | 27 | ||
28 | static const char *imx31_dt_board_compat[] __initdata = { | 28 | static const char *imx31_dt_board_compat[] __initconst = { |
29 | "fsl,imx31", | 29 | "fsl,imx31", |
30 | NULL | 30 | NULL |
31 | }; | 31 | }; |
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 | }; |
diff --git a/arch/arm/mach-imx/mach-imx50.c b/arch/arm/mach-imx/mach-imx50.c index 2f74fad54196..77b77a92bb5d 100644 --- a/arch/arm/mach-imx/mach-imx50.c +++ b/arch/arm/mach-imx/mach-imx50.c | |||
@@ -23,7 +23,7 @@ static void __init imx50_dt_init(void) | |||
23 | of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL); | 23 | of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL); |
24 | } | 24 | } |
25 | 25 | ||
26 | static const char *imx50_dt_board_compat[] __initdata = { | 26 | static const char *imx50_dt_board_compat[] __initconst = { |
27 | "fsl,imx50", | 27 | "fsl,imx50", |
28 | NULL | 28 | NULL |
29 | }; | 29 | }; |
diff --git a/arch/arm/mach-imx/mach-imx53.c b/arch/arm/mach-imx/mach-imx53.c index c9c4d8d96931..65850908a4b4 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) | |||
31 | of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL); | 31 | of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL); |
32 | } | 32 | } |
33 | 33 | ||
34 | static const char *imx53_dt_board_compat[] __initdata = { | 34 | static const char *imx53_dt_board_compat[] __initconst = { |
35 | "fsl,imx53", | 35 | "fsl,imx53", |
36 | NULL | 36 | NULL |
37 | }; | 37 | }; |
diff --git a/arch/arm/mach-imx/mach-imx6q.c b/arch/arm/mach-imx/mach-imx6q.c index 7e5ec34894e2..d2ea6e60ea7b 100644 --- a/arch/arm/mach-imx/mach-imx6q.c +++ b/arch/arm/mach-imx/mach-imx6q.c | |||
@@ -273,7 +273,7 @@ static void __init imx6q_init_irq(void) | |||
273 | irqchip_init(); | 273 | irqchip_init(); |
274 | } | 274 | } |
275 | 275 | ||
276 | static const char *imx6q_dt_compat[] __initdata = { | 276 | static const char *imx6q_dt_compat[] __initconst = { |
277 | "fsl,imx6dl", | 277 | "fsl,imx6dl", |
278 | "fsl,imx6q", | 278 | "fsl,imx6q", |
279 | NULL, | 279 | NULL, |
diff --git a/arch/arm/mach-imx/mach-imx6sl.c b/arch/arm/mach-imx/mach-imx6sl.c index 2f952e3fcf89..cca183a11291 100644 --- a/arch/arm/mach-imx/mach-imx6sl.c +++ b/arch/arm/mach-imx/mach-imx6sl.c | |||
@@ -61,7 +61,7 @@ static void __init imx6sl_init_irq(void) | |||
61 | irqchip_init(); | 61 | irqchip_init(); |
62 | } | 62 | } |
63 | 63 | ||
64 | static const char *imx6sl_dt_compat[] __initdata = { | 64 | static const char *imx6sl_dt_compat[] __initconst = { |
65 | "fsl,imx6sl", | 65 | "fsl,imx6sl", |
66 | NULL, | 66 | NULL, |
67 | }; | 67 | }; |
diff --git a/arch/arm/mach-imx/mach-vf610.c b/arch/arm/mach-imx/mach-vf610.c index af0cb8a9dc48..2d8aef5a6efa 100644 --- a/arch/arm/mach-imx/mach-vf610.c +++ b/arch/arm/mach-imx/mach-vf610.c | |||
@@ -26,7 +26,7 @@ static void __init vf610_init_irq(void) | |||
26 | irqchip_init(); | 26 | irqchip_init(); |
27 | } | 27 | } |
28 | 28 | ||
29 | static const char *vf610_dt_compat[] __initdata = { | 29 | static const char *vf610_dt_compat[] __initconst = { |
30 | "fsl,vf610", | 30 | "fsl,vf610", |
31 | NULL, | 31 | NULL, |
32 | }; | 32 | }; |