diff options
author | Shawn Guo <shawn.guo@freescale.com> | 2014-07-01 04:03:00 -0400 |
---|---|---|
committer | Shawn Guo <shawn.guo@freescale.com> | 2014-07-18 04:11:33 -0400 |
commit | 8756dd924df6f4199368bee426dc8b2da0cfc6d6 (patch) | |
tree | 77ae3c2d90e68b85596253c4b4a509de67482da6 /arch/arm/mach-imx/mach-imx6sx.c | |
parent | a49fb63c87f743c1166a2b0a20f80fcb0cbd02b2 (diff) |
ARM: imx: mark .dt_compat as const
Otherwise GCC will mark the .init.rodata section R/W, which causes
a compile error once we add other real R/O data.
Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Signed-off-by: Shawn Guo <shawn.guo@freescale.com>
Diffstat (limited to 'arch/arm/mach-imx/mach-imx6sx.c')
-rw-r--r-- | arch/arm/mach-imx/mach-imx6sx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-imx/mach-imx6sx.c b/arch/arm/mach-imx/mach-imx6sx.c index 74ff7d650f8a..673a734165ba 100644 --- a/arch/arm/mach-imx/mach-imx6sx.c +++ b/arch/arm/mach-imx/mach-imx6sx.c | |||
@@ -44,7 +44,7 @@ static void __init imx6sx_init_late(void) | |||
44 | imx6q_cpuidle_init(); | 44 | imx6q_cpuidle_init(); |
45 | } | 45 | } |
46 | 46 | ||
47 | static const char *imx6sx_dt_compat[] __initconst = { | 47 | static const char * const imx6sx_dt_compat[] __initconst = { |
48 | "fsl,imx6sx", | 48 | "fsl,imx6sx", |
49 | NULL, | 49 | NULL, |
50 | }; | 50 | }; |