Commit 0e02a8c1 authored by Benoit Cousson's avatar Benoit Cousson

ARM: OMAP2+: board-generic: Remove un-needed .atag_offset for DT_MACHINE

Some .atag_offset entries were wrongly added during a merge conflict
resolution in 3.3.
Remove them all, since DT boot does not use that attribute anymore.

Replace as well the #if... by #ifdef for consistency.
Signed-off-by: default avatarBenoit Cousson <b-cousson@ti.com>
Cc: Tony Lindgren <tony@atomide.com>
parent d65b4e98
...@@ -90,14 +90,13 @@ static void __init omap3_init(void) ...@@ -90,14 +90,13 @@ static void __init omap3_init(void)
} }
#endif #endif
#if defined(CONFIG_SOC_OMAP2420) #ifdef CONFIG_SOC_OMAP2420
static const char *omap242x_boards_compat[] __initdata = { static const char *omap242x_boards_compat[] __initdata = {
"ti,omap2420", "ti,omap2420",
NULL, NULL,
}; };
DT_MACHINE_START(OMAP242X_DT, "Generic OMAP2420 (Flattened Device Tree)") DT_MACHINE_START(OMAP242X_DT, "Generic OMAP2420 (Flattened Device Tree)")
.atag_offset = 0x100,
.reserve = omap_reserve, .reserve = omap_reserve,
.map_io = omap242x_map_io, .map_io = omap242x_map_io,
.init_early = omap2420_init_early, .init_early = omap2420_init_early,
...@@ -109,14 +108,13 @@ DT_MACHINE_START(OMAP242X_DT, "Generic OMAP2420 (Flattened Device Tree)") ...@@ -109,14 +108,13 @@ DT_MACHINE_START(OMAP242X_DT, "Generic OMAP2420 (Flattened Device Tree)")
MACHINE_END MACHINE_END
#endif #endif
#if defined(CONFIG_SOC_OMAP2430) #ifdef CONFIG_SOC_OMAP2430
static const char *omap243x_boards_compat[] __initdata = { static const char *omap243x_boards_compat[] __initdata = {
"ti,omap2430", "ti,omap2430",
NULL, NULL,
}; };
DT_MACHINE_START(OMAP243X_DT, "Generic OMAP2430 (Flattened Device Tree)") DT_MACHINE_START(OMAP243X_DT, "Generic OMAP2430 (Flattened Device Tree)")
.atag_offset = 0x100,
.reserve = omap_reserve, .reserve = omap_reserve,
.map_io = omap243x_map_io, .map_io = omap243x_map_io,
.init_early = omap2430_init_early, .init_early = omap2430_init_early,
...@@ -129,14 +127,13 @@ DT_MACHINE_START(OMAP243X_DT, "Generic OMAP2430 (Flattened Device Tree)") ...@@ -129,14 +127,13 @@ DT_MACHINE_START(OMAP243X_DT, "Generic OMAP2430 (Flattened Device Tree)")
MACHINE_END MACHINE_END
#endif #endif
#if defined(CONFIG_ARCH_OMAP3) #ifdef CONFIG_ARCH_OMAP3
static const char *omap3_boards_compat[] __initdata = { static const char *omap3_boards_compat[] __initdata = {
"ti,omap3", "ti,omap3",
NULL, NULL,
}; };
DT_MACHINE_START(OMAP3_DT, "Generic OMAP3 (Flattened Device Tree)") DT_MACHINE_START(OMAP3_DT, "Generic OMAP3 (Flattened Device Tree)")
.atag_offset = 0x100,
.reserve = omap_reserve, .reserve = omap_reserve,
.map_io = omap3_map_io, .map_io = omap3_map_io,
.init_early = omap3430_init_early, .init_early = omap3430_init_early,
...@@ -148,14 +145,13 @@ DT_MACHINE_START(OMAP3_DT, "Generic OMAP3 (Flattened Device Tree)") ...@@ -148,14 +145,13 @@ DT_MACHINE_START(OMAP3_DT, "Generic OMAP3 (Flattened Device Tree)")
MACHINE_END MACHINE_END
#endif #endif
#if defined(CONFIG_ARCH_OMAP4) #ifdef CONFIG_ARCH_OMAP4
static const char *omap4_boards_compat[] __initdata = { static const char *omap4_boards_compat[] __initdata = {
"ti,omap4", "ti,omap4",
NULL, NULL,
}; };
DT_MACHINE_START(OMAP4_DT, "Generic OMAP4 (Flattened Device Tree)") DT_MACHINE_START(OMAP4_DT, "Generic OMAP4 (Flattened Device Tree)")
.atag_offset = 0x100,
.reserve = omap_reserve, .reserve = omap_reserve,
.map_io = omap4_map_io, .map_io = omap4_map_io,
.init_early = omap4430_init_early, .init_early = omap4430_init_early,
......
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