summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-imx/mach-imx50.c
diff options
context:
space:
mode:
authorShawn Guo <shawn.guo@freescale.com>2014-07-01 10:03:00 +0200
committerShawn Guo <shawn.guo@freescale.com>2014-07-18 10:11:33 +0200
commit8756dd924df6f4199368bee426dc8b2da0cfc6d6 (patch)
tree77ae3c2d90e68b85596253c4b4a509de67482da6 /arch/arm/mach-imx/mach-imx50.c
parentARM: mx6: Only check for 1.2GHz for mx6quad (diff)
downloadlinux-8756dd924df6f4199368bee426dc8b2da0cfc6d6.tar.xz
linux-8756dd924df6f4199368bee426dc8b2da0cfc6d6.zip
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-imx50.c')
-rw-r--r--arch/arm/mach-imx/mach-imx50.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-imx/mach-imx50.c b/arch/arm/mach-imx/mach-imx50.c
index 62a4d4580291..b1e56a94a382 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)
of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL);
}
-static const char *imx50_dt_board_compat[] __initconst = {
+static const char * const imx50_dt_board_compat[] __initconst = {
"fsl,imx50",
NULL
};