diff options
author | Thomas Petazzoni <thomas.petazzoni@free-electrons.com> | 2015-03-03 09:40:56 -0500 |
---|---|---|
committer | Gregory CLEMENT <gregory.clement@free-electrons.com> | 2015-03-04 08:56:21 -0500 |
commit | bc2d7a58b9a48e4c1f35fadb30223ca87c59d50f (patch) | |
tree | 7cdc1d3effa9bccf9883a4d3b1b363de40d199ea /arch/arm/mach-mvebu | |
parent | c517d838eb7d07bbe9507871fab3931deccff539 (diff) |
ARM: mvebu: add __initconst specifiers on DT_MACHINE_START dt_compat tables
As suggested by Stephen Boyd, this commit adds the __initconst
specifier to the dt_compat table declarations used by the
DT_MACHINE_START structures in mach-mvebu land.
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Acked-by: Gregory CLEMENT <gregory.clement@free-electrons.com>
Signed-off-by: Gregory CLEMENT <gregory.clement@free-electrons.com>
Diffstat (limited to 'arch/arm/mach-mvebu')
-rw-r--r-- | arch/arm/mach-mvebu/board-v7.c | 6 | ||||
-rw-r--r-- | arch/arm/mach-mvebu/dove.c | 2 | ||||
-rw-r--r-- | arch/arm/mach-mvebu/kirkwood.c | 2 |
3 files changed, 5 insertions, 5 deletions
diff --git a/arch/arm/mach-mvebu/board-v7.c b/arch/arm/mach-mvebu/board-v7.c index 89a139ed7d5b..31b66f26e029 100644 --- a/arch/arm/mach-mvebu/board-v7.c +++ b/arch/arm/mach-mvebu/board-v7.c | |||
@@ -184,7 +184,7 @@ static void __init mvebu_dt_init(void) | |||
184 | of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL); | 184 | of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL); |
185 | } | 185 | } |
186 | 186 | ||
187 | static const char * const armada_370_xp_dt_compat[] = { | 187 | static const char * const armada_370_xp_dt_compat[] __initconst = { |
188 | "marvell,armada-370-xp", | 188 | "marvell,armada-370-xp", |
189 | NULL, | 189 | NULL, |
190 | }; | 190 | }; |
@@ -205,7 +205,7 @@ DT_MACHINE_START(ARMADA_370_XP_DT, "Marvell Armada 370/XP (Device Tree)") | |||
205 | .dt_compat = armada_370_xp_dt_compat, | 205 | .dt_compat = armada_370_xp_dt_compat, |
206 | MACHINE_END | 206 | MACHINE_END |
207 | 207 | ||
208 | static const char * const armada_375_dt_compat[] = { | 208 | static const char * const armada_375_dt_compat[] __initconst = { |
209 | "marvell,armada375", | 209 | "marvell,armada375", |
210 | NULL, | 210 | NULL, |
211 | }; | 211 | }; |
@@ -219,7 +219,7 @@ DT_MACHINE_START(ARMADA_375_DT, "Marvell Armada 375 (Device Tree)") | |||
219 | .dt_compat = armada_375_dt_compat, | 219 | .dt_compat = armada_375_dt_compat, |
220 | MACHINE_END | 220 | MACHINE_END |
221 | 221 | ||
222 | static const char * const armada_38x_dt_compat[] = { | 222 | static const char * const armada_38x_dt_compat[] __initconst = { |
223 | "marvell,armada380", | 223 | "marvell,armada380", |
224 | "marvell,armada385", | 224 | "marvell,armada385", |
225 | NULL, | 225 | NULL, |
diff --git a/arch/arm/mach-mvebu/dove.c b/arch/arm/mach-mvebu/dove.c index b50464ec1130..5a1741500a30 100644 --- a/arch/arm/mach-mvebu/dove.c +++ b/arch/arm/mach-mvebu/dove.c | |||
@@ -27,7 +27,7 @@ static void __init dove_init(void) | |||
27 | of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL); | 27 | of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL); |
28 | } | 28 | } |
29 | 29 | ||
30 | static const char * const dove_dt_compat[] = { | 30 | static const char * const dove_dt_compat[] __initconst = { |
31 | "marvell,dove", | 31 | "marvell,dove", |
32 | NULL | 32 | NULL |
33 | }; | 33 | }; |
diff --git a/arch/arm/mach-mvebu/kirkwood.c b/arch/arm/mach-mvebu/kirkwood.c index 6b5310828eb2..925f75f54268 100644 --- a/arch/arm/mach-mvebu/kirkwood.c +++ b/arch/arm/mach-mvebu/kirkwood.c | |||
@@ -186,7 +186,7 @@ static void __init kirkwood_dt_init(void) | |||
186 | of_platform_populate(NULL, of_default_bus_match_table, auxdata, NULL); | 186 | of_platform_populate(NULL, of_default_bus_match_table, auxdata, NULL); |
187 | } | 187 | } |
188 | 188 | ||
189 | static const char * const kirkwood_dt_board_compat[] = { | 189 | static const char * const kirkwood_dt_board_compat[] __initconst = { |
190 | "marvell,kirkwood", | 190 | "marvell,kirkwood", |
191 | NULL | 191 | NULL |
192 | }; | 192 | }; |