aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/platforms/embedded6xx
diff options
context:
space:
mode:
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>2014-09-10 15:56:38 -0400
committerMichael Ellerman <mpe@ellerman.id.au>2014-09-25 09:14:46 -0400
commitce6d73c94d7cfbdc3dc31860fe14af2f37d1b4fe (patch)
tree004b418dc22e1e6be5b8ba27d229a67a4ceee4df /arch/powerpc/platforms/embedded6xx
parentd4fe0965e20820f3dd05bcc4d89de3da29bb83aa (diff)
powerpc: make of_device_ids const
of_device_ids (i.e. compatible strings and the respective data) are not supposed to change at runtime. All functions working with of_device_ids provided by <linux/of.h> work with const of_device_ids. This allows to mark all struct of_device_id const, too. While touching these line also put the __init annotation at the right position where necessary. Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'arch/powerpc/platforms/embedded6xx')
-rw-r--r--arch/powerpc/platforms/embedded6xx/gamecube.c2
-rw-r--r--arch/powerpc/platforms/embedded6xx/linkstation.c2
-rw-r--r--arch/powerpc/platforms/embedded6xx/mvme5100.c2
-rw-r--r--arch/powerpc/platforms/embedded6xx/storcenter.c2
-rw-r--r--arch/powerpc/platforms/embedded6xx/wii.c2
5 files changed, 5 insertions, 5 deletions
diff --git a/arch/powerpc/platforms/embedded6xx/gamecube.c b/arch/powerpc/platforms/embedded6xx/gamecube.c
index a138e14bad2e..bd4ba5d7d568 100644
--- a/arch/powerpc/platforms/embedded6xx/gamecube.c
+++ b/arch/powerpc/platforms/embedded6xx/gamecube.c
@@ -90,7 +90,7 @@ define_machine(gamecube) {
90}; 90};
91 91
92 92
93static struct of_device_id gamecube_of_bus[] = { 93static const struct of_device_id gamecube_of_bus[] = {
94 { .compatible = "nintendo,flipper", }, 94 { .compatible = "nintendo,flipper", },
95 { }, 95 { },
96}; 96};
diff --git a/arch/powerpc/platforms/embedded6xx/linkstation.c b/arch/powerpc/platforms/embedded6xx/linkstation.c
index 455e7c087422..168e1d80b2e5 100644
--- a/arch/powerpc/platforms/embedded6xx/linkstation.c
+++ b/arch/powerpc/platforms/embedded6xx/linkstation.c
@@ -21,7 +21,7 @@
21 21
22#include "mpc10x.h" 22#include "mpc10x.h"
23 23
24static __initdata struct of_device_id of_bus_ids[] = { 24static const struct of_device_id of_bus_ids[] __initconst = {
25 { .type = "soc", }, 25 { .type = "soc", },
26 { .compatible = "simple-bus", }, 26 { .compatible = "simple-bus", },
27 {}, 27 {},
diff --git a/arch/powerpc/platforms/embedded6xx/mvme5100.c b/arch/powerpc/platforms/embedded6xx/mvme5100.c
index 25e3bfb64efb..1613303177e6 100644
--- a/arch/powerpc/platforms/embedded6xx/mvme5100.c
+++ b/arch/powerpc/platforms/embedded6xx/mvme5100.c
@@ -149,7 +149,7 @@ static int __init mvme5100_add_bridge(struct device_node *dev)
149 return 0; 149 return 0;
150} 150}
151 151
152static struct of_device_id mvme5100_of_bus_ids[] __initdata = { 152static const struct of_device_id mvme5100_of_bus_ids[] __initconst = {
153 { .compatible = "hawk-bridge", }, 153 { .compatible = "hawk-bridge", },
154 {}, 154 {},
155}; 155};
diff --git a/arch/powerpc/platforms/embedded6xx/storcenter.c b/arch/powerpc/platforms/embedded6xx/storcenter.c
index c458b60d14c4..d572833ebd00 100644
--- a/arch/powerpc/platforms/embedded6xx/storcenter.c
+++ b/arch/powerpc/platforms/embedded6xx/storcenter.c
@@ -24,7 +24,7 @@
24#include "mpc10x.h" 24#include "mpc10x.h"
25 25
26 26
27static __initdata struct of_device_id storcenter_of_bus[] = { 27static const struct of_device_id storcenter_of_bus[] __initconst = {
28 { .name = "soc", }, 28 { .name = "soc", },
29 {}, 29 {},
30}; 30};
diff --git a/arch/powerpc/platforms/embedded6xx/wii.c b/arch/powerpc/platforms/embedded6xx/wii.c
index 6d8dadf19f0b..388e29bab8f6 100644
--- a/arch/powerpc/platforms/embedded6xx/wii.c
+++ b/arch/powerpc/platforms/embedded6xx/wii.c
@@ -235,7 +235,7 @@ define_machine(wii) {
235 .machine_shutdown = wii_shutdown, 235 .machine_shutdown = wii_shutdown,
236}; 236};
237 237
238static struct of_device_id wii_of_bus[] = { 238static const struct of_device_id wii_of_bus[] = {
239 { .compatible = "nintendo,hollywood", }, 239 { .compatible = "nintendo,hollywood", },
240 { }, 240 { },
241}; 241};