Commit 1509e24b authored by Rajendra Nayak's avatar Rajendra Nayak Committed by Tony Lindgren

ARM: OMAP2+: Replace all __initdata with __initconst for const init

Use of const init definition must use __initconst so replace
all such instances where __initdata is used.
Signed-off-by: default avatarRajendra Nayak <rnayak@ti.com>
Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
parent 38b248db
...@@ -43,7 +43,7 @@ static void __init omap_generic_init(void) ...@@ -43,7 +43,7 @@ static void __init omap_generic_init(void)
} }
#ifdef CONFIG_SOC_OMAP2420 #ifdef CONFIG_SOC_OMAP2420
static const char *omap242x_boards_compat[] __initdata = { static const char *omap242x_boards_compat[] __initconst = {
"ti,omap2420", "ti,omap2420",
NULL, NULL,
}; };
...@@ -62,7 +62,7 @@ MACHINE_END ...@@ -62,7 +62,7 @@ MACHINE_END
#endif #endif
#ifdef CONFIG_SOC_OMAP2430 #ifdef CONFIG_SOC_OMAP2430
static const char *omap243x_boards_compat[] __initdata = { static const char *omap243x_boards_compat[] __initconst = {
"ti,omap2430", "ti,omap2430",
NULL, NULL,
}; };
...@@ -81,7 +81,7 @@ MACHINE_END ...@@ -81,7 +81,7 @@ MACHINE_END
#endif #endif
#ifdef CONFIG_ARCH_OMAP3 #ifdef CONFIG_ARCH_OMAP3
static const char *omap3_boards_compat[] __initdata = { static const char *omap3_boards_compat[] __initconst = {
"ti,omap3430", "ti,omap3430",
"ti,omap3", "ti,omap3",
NULL, NULL,
...@@ -100,7 +100,7 @@ DT_MACHINE_START(OMAP3_DT, "Generic OMAP3 (Flattened Device Tree)") ...@@ -100,7 +100,7 @@ DT_MACHINE_START(OMAP3_DT, "Generic OMAP3 (Flattened Device Tree)")
.restart = omap3xxx_restart, .restart = omap3xxx_restart,
MACHINE_END MACHINE_END
static const char *omap36xx_boards_compat[] __initdata = { static const char *omap36xx_boards_compat[] __initconst = {
"ti,omap36xx", "ti,omap36xx",
NULL, NULL,
}; };
...@@ -118,7 +118,7 @@ DT_MACHINE_START(OMAP36XX_DT, "Generic OMAP36xx (Flattened Device Tree)") ...@@ -118,7 +118,7 @@ DT_MACHINE_START(OMAP36XX_DT, "Generic OMAP36xx (Flattened Device Tree)")
.restart = omap3xxx_restart, .restart = omap3xxx_restart,
MACHINE_END MACHINE_END
static const char *omap3_gp_boards_compat[] __initdata = { static const char *omap3_gp_boards_compat[] __initconst = {
"ti,omap3-beagle", "ti,omap3-beagle",
"timll,omap3-devkit8000", "timll,omap3-devkit8000",
NULL, NULL,
...@@ -137,7 +137,7 @@ DT_MACHINE_START(OMAP3_GP_DT, "Generic OMAP3-GP (Flattened Device Tree)") ...@@ -137,7 +137,7 @@ DT_MACHINE_START(OMAP3_GP_DT, "Generic OMAP3-GP (Flattened Device Tree)")
.restart = omap3xxx_restart, .restart = omap3xxx_restart,
MACHINE_END MACHINE_END
static const char *am3517_boards_compat[] __initdata = { static const char *am3517_boards_compat[] __initconst = {
"ti,am3517", "ti,am3517",
NULL, NULL,
}; };
...@@ -157,7 +157,7 @@ MACHINE_END ...@@ -157,7 +157,7 @@ MACHINE_END
#endif #endif
#ifdef CONFIG_SOC_AM33XX #ifdef CONFIG_SOC_AM33XX
static const char *am33xx_boards_compat[] __initdata = { static const char *am33xx_boards_compat[] __initconst = {
"ti,am33xx", "ti,am33xx",
NULL, NULL,
}; };
...@@ -177,7 +177,7 @@ MACHINE_END ...@@ -177,7 +177,7 @@ MACHINE_END
#endif #endif
#ifdef CONFIG_ARCH_OMAP4 #ifdef CONFIG_ARCH_OMAP4
static const char *omap4_boards_compat[] __initdata = { static const char *omap4_boards_compat[] __initconst = {
"ti,omap4460", "ti,omap4460",
"ti,omap4430", "ti,omap4430",
"ti,omap4", "ti,omap4",
...@@ -199,7 +199,7 @@ MACHINE_END ...@@ -199,7 +199,7 @@ MACHINE_END
#endif #endif
#ifdef CONFIG_SOC_OMAP5 #ifdef CONFIG_SOC_OMAP5
static const char *omap5_boards_compat[] __initdata = { static const char *omap5_boards_compat[] __initconst = {
"ti,omap5432", "ti,omap5432",
"ti,omap5430", "ti,omap5430",
"ti,omap5", "ti,omap5",
...@@ -221,7 +221,7 @@ MACHINE_END ...@@ -221,7 +221,7 @@ MACHINE_END
#endif #endif
#ifdef CONFIG_SOC_AM43XX #ifdef CONFIG_SOC_AM43XX
static const char *am43_boards_compat[] __initdata = { static const char *am43_boards_compat[] __initconst = {
"ti,am4372", "ti,am4372",
"ti,am43", "ti,am43",
NULL, NULL,
...@@ -240,7 +240,7 @@ MACHINE_END ...@@ -240,7 +240,7 @@ MACHINE_END
#endif #endif
#ifdef CONFIG_SOC_DRA7XX #ifdef CONFIG_SOC_DRA7XX
static const char *dra7xx_boards_compat[] __initdata = { static const char *dra7xx_boards_compat[] __initconst = {
"ti,dra7xx", "ti,dra7xx",
"ti,dra7", "ti,dra7",
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