diff options
author | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2014-09-10 15:56:38 -0400 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2014-09-25 09:14:46 -0400 |
commit | ce6d73c94d7cfbdc3dc31860fe14af2f37d1b4fe (patch) | |
tree | 004b418dc22e1e6be5b8ba27d229a67a4ceee4df /arch/powerpc/platforms/44x | |
parent | d4fe0965e20820f3dd05bcc4d89de3da29bb83aa (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')
-rw-r--r-- | arch/powerpc/platforms/44x/canyonlands.c | 2 | ||||
-rw-r--r-- | arch/powerpc/platforms/44x/ebony.c | 2 | ||||
-rw-r--r-- | arch/powerpc/platforms/44x/iss4xx.c | 2 | ||||
-rw-r--r-- | arch/powerpc/platforms/44x/ppc44x_simple.c | 2 | ||||
-rw-r--r-- | arch/powerpc/platforms/44x/ppc476.c | 2 | ||||
-rw-r--r-- | arch/powerpc/platforms/44x/sam440ep.c | 2 | ||||
-rw-r--r-- | arch/powerpc/platforms/44x/virtex.c | 2 | ||||
-rw-r--r-- | arch/powerpc/platforms/44x/warp.c | 2 |
8 files changed, 8 insertions, 8 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 | ||
36 | static __initdata struct of_device_id ppc460ex_of_bus[] = { | 36 | static 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", }, |
diff --git a/arch/powerpc/platforms/44x/ebony.c b/arch/powerpc/platforms/44x/ebony.c index 6a4232bbdf88..ae893226392d 100644 --- a/arch/powerpc/platforms/44x/ebony.c +++ b/arch/powerpc/platforms/44x/ebony.c | |||
@@ -28,7 +28,7 @@ | |||
28 | #include <asm/pci-bridge.h> | 28 | #include <asm/pci-bridge.h> |
29 | #include <asm/ppc4xx.h> | 29 | #include <asm/ppc4xx.h> |
30 | 30 | ||
31 | static __initdata struct of_device_id ebony_of_bus[] = { | 31 | static const struct of_device_id ebony_of_bus[] __initconst = { |
32 | { .compatible = "ibm,plb4", }, | 32 | { .compatible = "ibm,plb4", }, |
33 | { .compatible = "ibm,opb", }, | 33 | { .compatible = "ibm,opb", }, |
34 | { .compatible = "ibm,ebc", }, | 34 | { .compatible = "ibm,ebc", }, |
diff --git a/arch/powerpc/platforms/44x/iss4xx.c b/arch/powerpc/platforms/44x/iss4xx.c index 4241bc825800..c7c6758b3cfe 100644 --- a/arch/powerpc/platforms/44x/iss4xx.c +++ b/arch/powerpc/platforms/44x/iss4xx.c | |||
@@ -32,7 +32,7 @@ | |||
32 | #include <asm/mpic.h> | 32 | #include <asm/mpic.h> |
33 | #include <asm/mmu.h> | 33 | #include <asm/mmu.h> |
34 | 34 | ||
35 | static __initdata struct of_device_id iss4xx_of_bus[] = { | 35 | static const struct of_device_id iss4xx_of_bus[] __initconst = { |
36 | { .compatible = "ibm,plb4", }, | 36 | { .compatible = "ibm,plb4", }, |
37 | { .compatible = "ibm,plb6", }, | 37 | { .compatible = "ibm,plb6", }, |
38 | { .compatible = "ibm,opb", }, | 38 | { .compatible = "ibm,opb", }, |
diff --git a/arch/powerpc/platforms/44x/ppc44x_simple.c b/arch/powerpc/platforms/44x/ppc44x_simple.c index 3ffb915446e3..573c3d2689c6 100644 --- a/arch/powerpc/platforms/44x/ppc44x_simple.c +++ b/arch/powerpc/platforms/44x/ppc44x_simple.c | |||
@@ -24,7 +24,7 @@ | |||
24 | #include <linux/init.h> | 24 | #include <linux/init.h> |
25 | #include <linux/of_platform.h> | 25 | #include <linux/of_platform.h> |
26 | 26 | ||
27 | static __initdata struct of_device_id ppc44x_of_bus[] = { | 27 | static const struct of_device_id ppc44x_of_bus[] __initconst = { |
28 | { .compatible = "ibm,plb4", }, | 28 | { .compatible = "ibm,plb4", }, |
29 | { .compatible = "ibm,opb", }, | 29 | { .compatible = "ibm,opb", }, |
30 | { .compatible = "ibm,ebc", }, | 30 | { .compatible = "ibm,ebc", }, |
diff --git a/arch/powerpc/platforms/44x/ppc476.c b/arch/powerpc/platforms/44x/ppc476.c index 33986c1a05da..58db9d083969 100644 --- a/arch/powerpc/platforms/44x/ppc476.c +++ b/arch/powerpc/platforms/44x/ppc476.c | |||
@@ -38,7 +38,7 @@ | |||
38 | #include <linux/pci.h> | 38 | #include <linux/pci.h> |
39 | #include <linux/i2c.h> | 39 | #include <linux/i2c.h> |
40 | 40 | ||
41 | static struct of_device_id ppc47x_of_bus[] __initdata = { | 41 | static const struct of_device_id ppc47x_of_bus[] __initconst = { |
42 | { .compatible = "ibm,plb4", }, | 42 | { .compatible = "ibm,plb4", }, |
43 | { .compatible = "ibm,plb6", }, | 43 | { .compatible = "ibm,plb6", }, |
44 | { .compatible = "ibm,opb", }, | 44 | { .compatible = "ibm,opb", }, |
diff --git a/arch/powerpc/platforms/44x/sam440ep.c b/arch/powerpc/platforms/44x/sam440ep.c index 9e09b835758b..3ee4a03c1496 100644 --- a/arch/powerpc/platforms/44x/sam440ep.c +++ b/arch/powerpc/platforms/44x/sam440ep.c | |||
@@ -29,7 +29,7 @@ | |||
29 | #include <asm/ppc4xx.h> | 29 | #include <asm/ppc4xx.h> |
30 | #include <linux/i2c.h> | 30 | #include <linux/i2c.h> |
31 | 31 | ||
32 | static __initdata struct of_device_id sam440ep_of_bus[] = { | 32 | static const struct of_device_id sam440ep_of_bus[] __initconst = { |
33 | { .compatible = "ibm,plb4", }, | 33 | { .compatible = "ibm,plb4", }, |
34 | { .compatible = "ibm,opb", }, | 34 | { .compatible = "ibm,opb", }, |
35 | { .compatible = "ibm,ebc", }, | 35 | { .compatible = "ibm,ebc", }, |
diff --git a/arch/powerpc/platforms/44x/virtex.c b/arch/powerpc/platforms/44x/virtex.c index cf96ccaa760c..ad272c17c640 100644 --- a/arch/powerpc/platforms/44x/virtex.c +++ b/arch/powerpc/platforms/44x/virtex.c | |||
@@ -21,7 +21,7 @@ | |||
21 | #include <asm/ppc4xx.h> | 21 | #include <asm/ppc4xx.h> |
22 | #include "44x.h" | 22 | #include "44x.h" |
23 | 23 | ||
24 | static struct of_device_id xilinx_of_bus_ids[] __initdata = { | 24 | static const struct of_device_id xilinx_of_bus_ids[] __initconst = { |
25 | { .compatible = "simple-bus", }, | 25 | { .compatible = "simple-bus", }, |
26 | { .compatible = "xlnx,plb-v46-1.00.a", }, | 26 | { .compatible = "xlnx,plb-v46-1.00.a", }, |
27 | { .compatible = "xlnx,plb-v46-1.02.a", }, | 27 | { .compatible = "xlnx,plb-v46-1.02.a", }, |
diff --git a/arch/powerpc/platforms/44x/warp.c b/arch/powerpc/platforms/44x/warp.c index 3a104284b338..501333cf42cf 100644 --- a/arch/powerpc/platforms/44x/warp.c +++ b/arch/powerpc/platforms/44x/warp.c | |||
@@ -28,7 +28,7 @@ | |||
28 | #include <asm/dma.h> | 28 | #include <asm/dma.h> |
29 | 29 | ||
30 | 30 | ||
31 | static __initdata struct of_device_id warp_of_bus[] = { | 31 | static const struct of_device_id warp_of_bus[] __initconst = { |
32 | { .compatible = "ibm,plb4", }, | 32 | { .compatible = "ibm,plb4", }, |
33 | { .compatible = "ibm,opb", }, | 33 | { .compatible = "ibm,opb", }, |
34 | { .compatible = "ibm,ebc", }, | 34 | { .compatible = "ibm,ebc", }, |