Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5d484175 authored by Nicolas Pitre's avatar Nicolas Pitre Committed by Shawn Guo
Browse files

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: default avatarNicolas Pitre <nico@linaro.org>
Signed-off-by: default avatarShawn Guo <shawnguo@kernel.org>
parent 8005c49d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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,
};