summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/platforms/embedded6xx/mvme5100.c
diff options
context:
space:
mode:
authorUwe Kleine-König2014-09-10 21:56:38 +0200
committerMichael Ellerman2014-09-25 15:14:46 +0200
commitce6d73c94d7cfbdc3dc31860fe14af2f37d1b4fe (patch)
tree004b418dc22e1e6be5b8ba27d229a67a4ceee4df /arch/powerpc/platforms/embedded6xx/mvme5100.c
parentpowerpc/jump_label: use HAVE_JUMP_LABEL? (diff)
downloadkernel-qcow2-linux-ce6d73c94d7cfbdc3dc31860fe14af2f37d1b4fe.tar.gz
kernel-qcow2-linux-ce6d73c94d7cfbdc3dc31860fe14af2f37d1b4fe.tar.xz
kernel-qcow2-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/embedded6xx/mvme5100.c')
-rw-r--r--arch/powerpc/platforms/embedded6xx/mvme5100.c2
1 files changed, 1 insertions, 1 deletions
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)
return 0;
}
-static struct of_device_id mvme5100_of_bus_ids[] __initdata = {
+static const struct of_device_id mvme5100_of_bus_ids[] __initconst = {
{ .compatible = "hawk-bridge", },
{},
};