aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/platforms/44x/canyonlands.c
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/44x/canyonlands.c
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/44x/canyonlands.c')
-rw-r--r--arch/powerpc/platforms/44x/canyonlands.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/platforms/44x/canyonlands.c b/arch/powerpc/platforms/44x/canyonlands.c
index e300dd4c89bf..22ca5430c9cb 100644
--- a/arch/powerpc/platforms/44x/canyonlands.c
+++ b/arch/powerpc/platforms/44x/canyonlands.c
@@ -33,7 +33,7 @@
33 33
34#define BCSR_USB_EN 0x11 34#define BCSR_USB_EN 0x11
35 35
36static __initdata struct of_device_id ppc460ex_of_bus[] = { 36static const struct of_device_id ppc460ex_of_bus[] __initconst = {
37 { .compatible = "ibm,plb4", }, 37 { .compatible = "ibm,plb4", },
38 { .compatible = "ibm,opb", }, 38 { .compatible = "ibm,opb", },
39 { .compatible = "ibm,ebc", }, 39 { .compatible = "ibm,ebc", },