Commit 8756dd92 authored by Shawn Guo's avatar Shawn Guo

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: default avatarLucas Stach <l.stach@pengutronix.de>
Signed-off-by: default avatarShawn Guo <shawn.guo@freescale.com>
parent a49fb63c
...@@ -25,7 +25,7 @@ static void __init imx31_dt_init(void) ...@@ -25,7 +25,7 @@ static void __init imx31_dt_init(void)
of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL); 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", "fsl,imx31",
NULL NULL
}; };
......
...@@ -34,7 +34,7 @@ static void __init imx35_irq_init(void) ...@@ -34,7 +34,7 @@ static void __init imx35_irq_init(void)
mx35_init_irq(); mx35_init_irq();
} }
static const char *imx35_dt_board_compat[] __initconst = { static const char * const imx35_dt_board_compat[] __initconst = {
"fsl,imx35", "fsl,imx35",
NULL NULL
}; };
......
...@@ -23,7 +23,7 @@ static void __init imx50_dt_init(void) ...@@ -23,7 +23,7 @@ static void __init imx50_dt_init(void)
of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL); 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", "fsl,imx50",
NULL NULL
}; };
......
...@@ -67,7 +67,7 @@ static void __init imx51_init_late(void) ...@@ -67,7 +67,7 @@ static void __init imx51_init_late(void)
imx51_pm_init(); imx51_pm_init();
} }
static const char *imx51_dt_board_compat[] __initconst = { static const char * const imx51_dt_board_compat[] __initconst = {
"fsl,imx51", "fsl,imx51",
NULL NULL
}; };
......
...@@ -41,7 +41,7 @@ static void __init imx53_init_late(void) ...@@ -41,7 +41,7 @@ static void __init imx53_init_late(void)
imx53_pm_init(); imx53_pm_init();
} }
static const char *imx53_dt_board_compat[] __initconst = { static const char * const imx53_dt_board_compat[] __initconst = {
"fsl,imx53", "fsl,imx53",
NULL NULL
}; };
......
...@@ -396,7 +396,7 @@ static void __init imx6q_init_irq(void) ...@@ -396,7 +396,7 @@ static void __init imx6q_init_irq(void)
irqchip_init(); irqchip_init();
} }
static const char *imx6q_dt_compat[] __initconst = { static const char * const imx6q_dt_compat[] __initconst = {
"fsl,imx6dl", "fsl,imx6dl",
"fsl,imx6q", "fsl,imx6q",
NULL, NULL,
......
...@@ -70,7 +70,7 @@ static void __init imx6sl_init_irq(void) ...@@ -70,7 +70,7 @@ static void __init imx6sl_init_irq(void)
irqchip_init(); irqchip_init();
} }
static const char *imx6sl_dt_compat[] __initconst = { static const char * const imx6sl_dt_compat[] __initconst = {
"fsl,imx6sl", "fsl,imx6sl",
NULL, NULL,
}; };
......
...@@ -44,7 +44,7 @@ static void __init imx6sx_init_late(void) ...@@ -44,7 +44,7 @@ static void __init imx6sx_init_late(void)
imx6q_cpuidle_init(); imx6q_cpuidle_init();
} }
static const char *imx6sx_dt_compat[] __initconst = { static const char * const imx6sx_dt_compat[] __initconst = {
"fsl,imx6sx", "fsl,imx6sx",
NULL, NULL,
}; };
......
...@@ -20,7 +20,7 @@ static void __init vf610_init_machine(void) ...@@ -20,7 +20,7 @@ static void __init vf610_init_machine(void)
of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL); of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL);
} }
static const char *vf610_dt_compat[] __initconst = { static const char * const vf610_dt_compat[] __initconst = {
"fsl,vf610", "fsl,vf610",
NULL, NULL,
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment