summaryrefslogtreecommitdiff
path: root/arch/arm/mach-imx/imx31-dt.c
diff options
context:
space:
mode:
authorShawn Guo <shawn.guo@freescale.com>2014-07-01 12:03:00 +0400
committerShawn Guo <shawn.guo@freescale.com>2014-07-18 12:11:33 +0400
commit8756dd924df6f4199368bee426dc8b2da0cfc6d6 (patch)
tree77ae3c2d90e68b85596253c4b4a509de67482da6 /arch/arm/mach-imx/imx31-dt.c
parenta49fb63c87f743c1166a2b0a20f80fcb0cbd02b2 (diff)
downloadlinux-8756dd924df6f4199368bee426dc8b2da0cfc6d6.tar.xz
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/imx31-dt.c')
-rw-r--r--arch/arm/mach-imx/imx31-dt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-imx/imx31-dt.c b/arch/arm/mach-imx/imx31-dt.c
index 581f4d6c9b8a..418dbc82adc4 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)
of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL);
}
-static const char *imx31_dt_board_compat[] __initconst = {
+static const char * const imx31_dt_board_compat[] __initconst = {
"fsl,imx31",
NULL
};