diff options
author | Nicolas Pitre <nicolas.pitre@linaro.org> | 2015-11-21 20:35:31 -0500 |
---|---|---|
committer | Shawn Guo <shawnguo@kernel.org> | 2015-11-25 11:06:52 +0800 |
commit | 5d48417592583ec64ec62661dd7cf1bd342a48fc (patch) | |
tree | d256bc688093aa8989ddc0097fb95ef54104ed76 /arch/arm/mach-imx/mach-imx6ul.c | |
parent | 8005c49d9aea74d382f474ce11afbbc7d7130bec (diff) | |
download | op-kernel-dev-5d48417592583ec64ec62661dd7cf1bd342a48fc.zip op-kernel-dev-5d48417592583ec64ec62661dd7cf1bd342a48fc.tar.gz |
mach-imx/mach-imx6ul.c: proper constness with __initconst
Both the pointer array and the pointed data have to be const when using
__initconst to be correct. This also fixes LTO builds that otherwise
fail with section mismatch errors.
Signed-off-by: Nicolas Pitre <nico@linaro.org>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
Diffstat (limited to 'arch/arm/mach-imx/mach-imx6ul.c')
-rw-r--r-- | arch/arm/mach-imx/mach-imx6ul.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-imx/mach-imx6ul.c b/arch/arm/mach-imx/mach-imx6ul.c index acaf705..a38b16b 100644 --- a/arch/arm/mach-imx/mach-imx6ul.c +++ b/arch/arm/mach-imx/mach-imx6ul.c @@ -84,7 +84,7 @@ static void __init imx6ul_init_late(void) platform_device_register_simple("imx6q-cpufreq", -1, NULL, 0); } -static const char *imx6ul_dt_compat[] __initconst = { +static const char * const imx6ul_dt_compat[] __initconst = { "fsl,imx6ul", NULL, }; |