aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/arch/powerpc/platforms/40x/walnut.c
diff options
context:
space:
mode:
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>2014-09-10 21:56:38 +0200
committerMichael Ellerman <mpe@ellerman.id.au>2014-09-25 23:14:46 +1000
commitce6d73c94d7cfbdc3dc31860fe14af2f37d1b4fe (patch)
tree004b418dc22e1e6be5b8ba27d229a67a4ceee4df /arch/powerpc/platforms/40x/walnut.c
parentpowerpc/jump_label: use HAVE_JUMP_LABEL? (diff)
downloadwireguard-linux-ce6d73c94d7cfbdc3dc31860fe14af2f37d1b4fe.tar.xz
wireguard-linux-ce6d73c94d7cfbdc3dc31860fe14af2f37d1b4fe.zip
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/40x/walnut.c')
-rw-r--r--arch/powerpc/platforms/40x/walnut.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/platforms/40x/walnut.c b/arch/powerpc/platforms/40x/walnut.c
index 8b691df72f74..f7ac2d0fcb44 100644
--- a/arch/powerpc/platforms/40x/walnut.c
+++ b/arch/powerpc/platforms/40x/walnut.c
@@ -28,7 +28,7 @@
#include <asm/pci-bridge.h>
#include <asm/ppc4xx.h>
-static __initdata struct of_device_id walnut_of_bus[] = {
+static const struct of_device_id walnut_of_bus[] __initconst = {
{ .compatible = "ibm,plb3", },
{ .compatible = "ibm,opb", },
{ .compatible = "ibm,ebc", },