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>
This commit is contained in:
parent
8005c49d9a
commit
5d48417592
1 changed files with 1 additions and 1 deletions
|
@ -84,7 +84,7 @@ static void __init imx6ul_init_late(void)
|
||||||
platform_device_register_simple("imx6q-cpufreq", -1, NULL, 0);
|
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",
|
"fsl,imx6ul",
|
||||||
NULL,
|
NULL,
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue