diff options
58 files changed, 67 insertions, 67 deletions
diff --git a/arch/powerpc/kernel/ibmebus.c b/arch/powerpc/kernel/ibmebus.c index 1114d13ac19f..ac86c53e2542 100644 --- a/arch/powerpc/kernel/ibmebus.c +++ b/arch/powerpc/kernel/ibmebus.c | |||
@@ -55,7 +55,7 @@ static struct device ibmebus_bus_device = { /* fake "parent" device */ | |||
55 | struct bus_type ibmebus_bus_type; | 55 | struct bus_type ibmebus_bus_type; |
56 | 56 | ||
57 | /* These devices will automatically be added to the bus during init */ | 57 | /* These devices will automatically be added to the bus during init */ |
58 | static struct of_device_id __initdata ibmebus_matches[] = { | 58 | static const struct of_device_id ibmebus_matches[] __initconst = { |
59 | { .compatible = "IBM,lhca" }, | 59 | { .compatible = "IBM,lhca" }, |
60 | { .compatible = "IBM,lhea" }, | 60 | { .compatible = "IBM,lhea" }, |
61 | {}, | 61 | {}, |
diff --git a/arch/powerpc/kernel/legacy_serial.c b/arch/powerpc/kernel/legacy_serial.c index 936258881c98..7b750c4ed5c7 100644 --- a/arch/powerpc/kernel/legacy_serial.c +++ b/arch/powerpc/kernel/legacy_serial.c | |||
@@ -35,7 +35,7 @@ static struct legacy_serial_info { | |||
35 | phys_addr_t taddr; | 35 | phys_addr_t taddr; |
36 | } legacy_serial_infos[MAX_LEGACY_SERIAL_PORTS]; | 36 | } legacy_serial_infos[MAX_LEGACY_SERIAL_PORTS]; |
37 | 37 | ||
38 | static struct of_device_id legacy_serial_parents[] __initdata = { | 38 | static const struct of_device_id legacy_serial_parents[] __initconst = { |
39 | {.type = "soc",}, | 39 | {.type = "soc",}, |
40 | {.type = "tsi-bridge",}, | 40 | {.type = "tsi-bridge",}, |
41 | {.type = "opb", }, | 41 | {.type = "opb", }, |
diff --git a/arch/powerpc/kernel/of_platform.c b/arch/powerpc/kernel/of_platform.c index a7b743076720..f87bc1b4bdda 100644 --- a/arch/powerpc/kernel/of_platform.c +++ b/arch/powerpc/kernel/of_platform.c | |||
@@ -97,7 +97,7 @@ static int of_pci_phb_probe(struct platform_device *dev) | |||
97 | return 0; | 97 | return 0; |
98 | } | 98 | } |
99 | 99 | ||
100 | static struct of_device_id of_pci_phb_ids[] = { | 100 | static const struct of_device_id of_pci_phb_ids[] = { |
101 | { .type = "pci", }, | 101 | { .type = "pci", }, |
102 | { .type = "pcix", }, | 102 | { .type = "pcix", }, |
103 | { .type = "pcie", }, | 103 | { .type = "pcie", }, |
diff --git a/arch/powerpc/platforms/40x/ep405.c b/arch/powerpc/platforms/40x/ep405.c index b0389bbe4f94..ddc12a1926ef 100644 --- a/arch/powerpc/platforms/40x/ep405.c +++ b/arch/powerpc/platforms/40x/ep405.c | |||
@@ -49,7 +49,7 @@ static void __iomem *bcsr_regs; | |||
49 | /* there's more, can't be bothered typing them tho */ | 49 | /* there's more, can't be bothered typing them tho */ |
50 | 50 | ||
51 | 51 | ||
52 | static __initdata struct of_device_id ep405_of_bus[] = { | 52 | static const struct of_device_id ep405_of_bus[] __initconst = { |
53 | { .compatible = "ibm,plb3", }, | 53 | { .compatible = "ibm,plb3", }, |
54 | { .compatible = "ibm,opb", }, | 54 | { .compatible = "ibm,opb", }, |
55 | { .compatible = "ibm,ebc", }, | 55 | { .compatible = "ibm,ebc", }, |
diff --git a/arch/powerpc/platforms/40x/ppc40x_simple.c b/arch/powerpc/platforms/40x/ppc40x_simple.c index 8f3920e5a046..b0c46375dd95 100644 --- a/arch/powerpc/platforms/40x/ppc40x_simple.c +++ b/arch/powerpc/platforms/40x/ppc40x_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 ppc40x_of_bus[] = { | 27 | static const struct of_device_id ppc40x_of_bus[] __initconst = { |
28 | { .compatible = "ibm,plb3", }, | 28 | { .compatible = "ibm,plb3", }, |
29 | { .compatible = "ibm,plb4", }, | 29 | { .compatible = "ibm,plb4", }, |
30 | { .compatible = "ibm,opb", }, | 30 | { .compatible = "ibm,opb", }, |
diff --git a/arch/powerpc/platforms/40x/virtex.c b/arch/powerpc/platforms/40x/virtex.c index d0fc6866b00c..9aa7ae2f4164 100644 --- a/arch/powerpc/platforms/40x/virtex.c +++ b/arch/powerpc/platforms/40x/virtex.c | |||
@@ -17,7 +17,7 @@ | |||
17 | #include <asm/xilinx_pci.h> | 17 | #include <asm/xilinx_pci.h> |
18 | #include <asm/ppc4xx.h> | 18 | #include <asm/ppc4xx.h> |
19 | 19 | ||
20 | static struct of_device_id xilinx_of_bus_ids[] __initdata = { | 20 | static const struct of_device_id xilinx_of_bus_ids[] __initconst = { |
21 | { .compatible = "xlnx,plb-v46-1.00.a", }, | 21 | { .compatible = "xlnx,plb-v46-1.00.a", }, |
22 | { .compatible = "xlnx,plb-v34-1.01.a", }, | 22 | { .compatible = "xlnx,plb-v34-1.01.a", }, |
23 | { .compatible = "xlnx,plb-v34-1.02.a", }, | 23 | { .compatible = "xlnx,plb-v34-1.02.a", }, |
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 @@ | |||
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 walnut_of_bus[] = { | 31 | static const struct of_device_id walnut_of_bus[] __initconst = { |
32 | { .compatible = "ibm,plb3", }, | 32 | { .compatible = "ibm,plb3", }, |
33 | { .compatible = "ibm,opb", }, | 33 | { .compatible = "ibm,opb", }, |
34 | { .compatible = "ibm,ebc", }, | 34 | { .compatible = "ibm,ebc", }, |
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", }, |
diff --git a/arch/powerpc/platforms/512x/mpc512x_shared.c b/arch/powerpc/platforms/512x/mpc512x_shared.c index adb95f03d4d4..e996e007bc44 100644 --- a/arch/powerpc/platforms/512x/mpc512x_shared.c +++ b/arch/powerpc/platforms/512x/mpc512x_shared.c | |||
@@ -337,7 +337,7 @@ void __init mpc512x_init_IRQ(void) | |||
337 | /* | 337 | /* |
338 | * Nodes to do bus probe on, soc and localbus | 338 | * Nodes to do bus probe on, soc and localbus |
339 | */ | 339 | */ |
340 | static struct of_device_id __initdata of_bus_ids[] = { | 340 | static const struct of_device_id of_bus_ids[] __initconst = { |
341 | { .compatible = "fsl,mpc5121-immr", }, | 341 | { .compatible = "fsl,mpc5121-immr", }, |
342 | { .compatible = "fsl,mpc5121-localbus", }, | 342 | { .compatible = "fsl,mpc5121-localbus", }, |
343 | { .compatible = "fsl,mpc5121-mbx", }, | 343 | { .compatible = "fsl,mpc5121-mbx", }, |
diff --git a/arch/powerpc/platforms/52xx/lite5200.c b/arch/powerpc/platforms/52xx/lite5200.c index 1843bc932011..7492de3cf6d0 100644 --- a/arch/powerpc/platforms/52xx/lite5200.c +++ b/arch/powerpc/platforms/52xx/lite5200.c | |||
@@ -34,13 +34,13 @@ | |||
34 | */ | 34 | */ |
35 | 35 | ||
36 | /* mpc5200 device tree match tables */ | 36 | /* mpc5200 device tree match tables */ |
37 | static struct of_device_id mpc5200_cdm_ids[] __initdata = { | 37 | static const struct of_device_id mpc5200_cdm_ids[] __initconst = { |
38 | { .compatible = "fsl,mpc5200-cdm", }, | 38 | { .compatible = "fsl,mpc5200-cdm", }, |
39 | { .compatible = "mpc5200-cdm", }, | 39 | { .compatible = "mpc5200-cdm", }, |
40 | {} | 40 | {} |
41 | }; | 41 | }; |
42 | 42 | ||
43 | static struct of_device_id mpc5200_gpio_ids[] __initdata = { | 43 | static const struct of_device_id mpc5200_gpio_ids[] __initconst = { |
44 | { .compatible = "fsl,mpc5200-gpio", }, | 44 | { .compatible = "fsl,mpc5200-gpio", }, |
45 | { .compatible = "mpc5200-gpio", }, | 45 | { .compatible = "mpc5200-gpio", }, |
46 | {} | 46 | {} |
diff --git a/arch/powerpc/platforms/52xx/media5200.c b/arch/powerpc/platforms/52xx/media5200.c index 070d315dd6cd..32cae33c4266 100644 --- a/arch/powerpc/platforms/52xx/media5200.c +++ b/arch/powerpc/platforms/52xx/media5200.c | |||
@@ -30,7 +30,7 @@ | |||
30 | #include <asm/machdep.h> | 30 | #include <asm/machdep.h> |
31 | #include <asm/mpc52xx.h> | 31 | #include <asm/mpc52xx.h> |
32 | 32 | ||
33 | static struct of_device_id mpc5200_gpio_ids[] __initdata = { | 33 | static const struct of_device_id mpc5200_gpio_ids[] __initconst = { |
34 | { .compatible = "fsl,mpc5200-gpio", }, | 34 | { .compatible = "fsl,mpc5200-gpio", }, |
35 | { .compatible = "mpc5200-gpio", }, | 35 | { .compatible = "mpc5200-gpio", }, |
36 | {} | 36 | {} |
diff --git a/arch/powerpc/platforms/52xx/mpc52xx_common.c b/arch/powerpc/platforms/52xx/mpc52xx_common.c index d7e94f49532a..26993826a797 100644 --- a/arch/powerpc/platforms/52xx/mpc52xx_common.c +++ b/arch/powerpc/platforms/52xx/mpc52xx_common.c | |||
@@ -23,12 +23,12 @@ | |||
23 | #include <asm/mpc52xx.h> | 23 | #include <asm/mpc52xx.h> |
24 | 24 | ||
25 | /* MPC5200 device tree match tables */ | 25 | /* MPC5200 device tree match tables */ |
26 | static struct of_device_id mpc52xx_xlb_ids[] __initdata = { | 26 | static const struct of_device_id mpc52xx_xlb_ids[] __initconst = { |
27 | { .compatible = "fsl,mpc5200-xlb", }, | 27 | { .compatible = "fsl,mpc5200-xlb", }, |
28 | { .compatible = "mpc5200-xlb", }, | 28 | { .compatible = "mpc5200-xlb", }, |
29 | {} | 29 | {} |
30 | }; | 30 | }; |
31 | static struct of_device_id mpc52xx_bus_ids[] __initdata = { | 31 | static const struct of_device_id mpc52xx_bus_ids[] __initconst = { |
32 | { .compatible = "fsl,mpc5200-immr", }, | 32 | { .compatible = "fsl,mpc5200-immr", }, |
33 | { .compatible = "fsl,mpc5200b-immr", }, | 33 | { .compatible = "fsl,mpc5200b-immr", }, |
34 | { .compatible = "simple-bus", }, | 34 | { .compatible = "simple-bus", }, |
@@ -108,21 +108,21 @@ void __init mpc52xx_declare_of_platform_devices(void) | |||
108 | /* | 108 | /* |
109 | * match tables used by mpc52xx_map_common_devices() | 109 | * match tables used by mpc52xx_map_common_devices() |
110 | */ | 110 | */ |
111 | static struct of_device_id mpc52xx_gpt_ids[] __initdata = { | 111 | static const struct of_device_id mpc52xx_gpt_ids[] __initconst = { |
112 | { .compatible = "fsl,mpc5200-gpt", }, | 112 | { .compatible = "fsl,mpc5200-gpt", }, |
113 | { .compatible = "mpc5200-gpt", }, /* old */ | 113 | { .compatible = "mpc5200-gpt", }, /* old */ |
114 | {} | 114 | {} |
115 | }; | 115 | }; |
116 | static struct of_device_id mpc52xx_cdm_ids[] __initdata = { | 116 | static const struct of_device_id mpc52xx_cdm_ids[] __initconst = { |
117 | { .compatible = "fsl,mpc5200-cdm", }, | 117 | { .compatible = "fsl,mpc5200-cdm", }, |
118 | { .compatible = "mpc5200-cdm", }, /* old */ | 118 | { .compatible = "mpc5200-cdm", }, /* old */ |
119 | {} | 119 | {} |
120 | }; | 120 | }; |
121 | static const struct of_device_id mpc52xx_gpio_simple[] = { | 121 | static const struct of_device_id mpc52xx_gpio_simple[] __initconst = { |
122 | { .compatible = "fsl,mpc5200-gpio", }, | 122 | { .compatible = "fsl,mpc5200-gpio", }, |
123 | {} | 123 | {} |
124 | }; | 124 | }; |
125 | static const struct of_device_id mpc52xx_gpio_wkup[] = { | 125 | static const struct of_device_id mpc52xx_gpio_wkup[] __initconst = { |
126 | { .compatible = "fsl,mpc5200-gpio-wkup", }, | 126 | { .compatible = "fsl,mpc5200-gpio-wkup", }, |
127 | {} | 127 | {} |
128 | }; | 128 | }; |
diff --git a/arch/powerpc/platforms/52xx/mpc52xx_lpbfifo.c b/arch/powerpc/platforms/52xx/mpc52xx_lpbfifo.c index 37f7a89c10f2..f8f0081759fb 100644 --- a/arch/powerpc/platforms/52xx/mpc52xx_lpbfifo.c +++ b/arch/powerpc/platforms/52xx/mpc52xx_lpbfifo.c | |||
@@ -564,7 +564,7 @@ static int mpc52xx_lpbfifo_remove(struct platform_device *op) | |||
564 | return 0; | 564 | return 0; |
565 | } | 565 | } |
566 | 566 | ||
567 | static struct of_device_id mpc52xx_lpbfifo_match[] = { | 567 | static const struct of_device_id mpc52xx_lpbfifo_match[] = { |
568 | { .compatible = "fsl,mpc5200-lpbfifo", }, | 568 | { .compatible = "fsl,mpc5200-lpbfifo", }, |
569 | {}, | 569 | {}, |
570 | }; | 570 | }; |
diff --git a/arch/powerpc/platforms/52xx/mpc52xx_pic.c b/arch/powerpc/platforms/52xx/mpc52xx_pic.c index 2898b737deb7..2944bc84b9d6 100644 --- a/arch/powerpc/platforms/52xx/mpc52xx_pic.c +++ b/arch/powerpc/platforms/52xx/mpc52xx_pic.c | |||
@@ -119,12 +119,12 @@ | |||
119 | 119 | ||
120 | 120 | ||
121 | /* MPC5200 device tree match tables */ | 121 | /* MPC5200 device tree match tables */ |
122 | static struct of_device_id mpc52xx_pic_ids[] __initdata = { | 122 | static const struct of_device_id mpc52xx_pic_ids[] __initconst = { |
123 | { .compatible = "fsl,mpc5200-pic", }, | 123 | { .compatible = "fsl,mpc5200-pic", }, |
124 | { .compatible = "mpc5200-pic", }, | 124 | { .compatible = "mpc5200-pic", }, |
125 | {} | 125 | {} |
126 | }; | 126 | }; |
127 | static struct of_device_id mpc52xx_sdma_ids[] __initdata = { | 127 | static const struct of_device_id mpc52xx_sdma_ids[] __initconst = { |
128 | { .compatible = "fsl,mpc5200-bestcomm", }, | 128 | { .compatible = "fsl,mpc5200-bestcomm", }, |
129 | { .compatible = "mpc5200-bestcomm", }, | 129 | { .compatible = "mpc5200-bestcomm", }, |
130 | {} | 130 | {} |
diff --git a/arch/powerpc/platforms/82xx/ep8248e.c b/arch/powerpc/platforms/82xx/ep8248e.c index 79799b29ffe2..3d0c3a01143d 100644 --- a/arch/powerpc/platforms/82xx/ep8248e.c +++ b/arch/powerpc/platforms/82xx/ep8248e.c | |||
@@ -298,7 +298,7 @@ static void __init ep8248e_setup_arch(void) | |||
298 | ppc_md.progress("ep8248e_setup_arch(), finish", 0); | 298 | ppc_md.progress("ep8248e_setup_arch(), finish", 0); |
299 | } | 299 | } |
300 | 300 | ||
301 | static __initdata struct of_device_id of_bus_ids[] = { | 301 | static const struct of_device_id of_bus_ids[] __initconst = { |
302 | { .compatible = "simple-bus", }, | 302 | { .compatible = "simple-bus", }, |
303 | { .compatible = "fsl,ep8248e-bcsr", }, | 303 | { .compatible = "fsl,ep8248e-bcsr", }, |
304 | {}, | 304 | {}, |
diff --git a/arch/powerpc/platforms/82xx/km82xx.c b/arch/powerpc/platforms/82xx/km82xx.c index 058cc1895c88..387b446f4161 100644 --- a/arch/powerpc/platforms/82xx/km82xx.c +++ b/arch/powerpc/platforms/82xx/km82xx.c | |||
@@ -180,7 +180,7 @@ static void __init km82xx_setup_arch(void) | |||
180 | ppc_md.progress("km82xx_setup_arch(), finish", 0); | 180 | ppc_md.progress("km82xx_setup_arch(), finish", 0); |
181 | } | 181 | } |
182 | 182 | ||
183 | static __initdata struct of_device_id of_bus_ids[] = { | 183 | static const struct of_device_id of_bus_ids[] __initconst = { |
184 | { .compatible = "simple-bus", }, | 184 | { .compatible = "simple-bus", }, |
185 | {}, | 185 | {}, |
186 | }; | 186 | }; |
diff --git a/arch/powerpc/platforms/82xx/mpc8272_ads.c b/arch/powerpc/platforms/82xx/mpc8272_ads.c index 6a14cf50f4a2..d24deacf07d0 100644 --- a/arch/powerpc/platforms/82xx/mpc8272_ads.c +++ b/arch/powerpc/platforms/82xx/mpc8272_ads.c | |||
@@ -181,7 +181,7 @@ static void __init mpc8272_ads_setup_arch(void) | |||
181 | ppc_md.progress("mpc8272_ads_setup_arch(), finish", 0); | 181 | ppc_md.progress("mpc8272_ads_setup_arch(), finish", 0); |
182 | } | 182 | } |
183 | 183 | ||
184 | static struct of_device_id __initdata of_bus_ids[] = { | 184 | static const struct of_device_id of_bus_ids[] __initconst = { |
185 | { .name = "soc", }, | 185 | { .name = "soc", }, |
186 | { .name = "cpm", }, | 186 | { .name = "cpm", }, |
187 | { .name = "localbus", }, | 187 | { .name = "localbus", }, |
diff --git a/arch/powerpc/platforms/82xx/pq2fads.c b/arch/powerpc/platforms/82xx/pq2fads.c index e5f82ec8df17..3a5164ad10ad 100644 --- a/arch/powerpc/platforms/82xx/pq2fads.c +++ b/arch/powerpc/platforms/82xx/pq2fads.c | |||
@@ -168,7 +168,7 @@ static int __init pq2fads_probe(void) | |||
168 | return of_flat_dt_is_compatible(root, "fsl,pq2fads"); | 168 | return of_flat_dt_is_compatible(root, "fsl,pq2fads"); |
169 | } | 169 | } |
170 | 170 | ||
171 | static struct of_device_id __initdata of_bus_ids[] = { | 171 | static const struct of_device_id of_bus_ids[] __initconst = { |
172 | { .name = "soc", }, | 172 | { .name = "soc", }, |
173 | { .name = "cpm", }, | 173 | { .name = "cpm", }, |
174 | { .name = "localbus", }, | 174 | { .name = "localbus", }, |
diff --git a/arch/powerpc/platforms/83xx/mcu_mpc8349emitx.c b/arch/powerpc/platforms/83xx/mcu_mpc8349emitx.c index e238b6a55b15..31053eec5cd0 100644 --- a/arch/powerpc/platforms/83xx/mcu_mpc8349emitx.c +++ b/arch/powerpc/platforms/83xx/mcu_mpc8349emitx.c | |||
@@ -213,7 +213,7 @@ static const struct i2c_device_id mcu_ids[] = { | |||
213 | }; | 213 | }; |
214 | MODULE_DEVICE_TABLE(i2c, mcu_ids); | 214 | MODULE_DEVICE_TABLE(i2c, mcu_ids); |
215 | 215 | ||
216 | static struct of_device_id mcu_of_match_table[] = { | 216 | static const struct of_device_id mcu_of_match_table[] = { |
217 | { .compatible = "fsl,mcu-mpc8349emitx", }, | 217 | { .compatible = "fsl,mcu-mpc8349emitx", }, |
218 | { }, | 218 | { }, |
219 | }; | 219 | }; |
diff --git a/arch/powerpc/platforms/83xx/misc.c b/arch/powerpc/platforms/83xx/misc.c index 125336f750c6..ef9d01a049c1 100644 --- a/arch/powerpc/platforms/83xx/misc.c +++ b/arch/powerpc/platforms/83xx/misc.c | |||
@@ -114,7 +114,7 @@ void __init mpc83xx_ipic_and_qe_init_IRQ(void) | |||
114 | } | 114 | } |
115 | #endif /* CONFIG_QUICC_ENGINE */ | 115 | #endif /* CONFIG_QUICC_ENGINE */ |
116 | 116 | ||
117 | static struct of_device_id __initdata of_bus_ids[] = { | 117 | static const struct of_device_id of_bus_ids[] __initconst = { |
118 | { .type = "soc", }, | 118 | { .type = "soc", }, |
119 | { .compatible = "soc", }, | 119 | { .compatible = "soc", }, |
120 | { .compatible = "simple-bus" }, | 120 | { .compatible = "simple-bus" }, |
diff --git a/arch/powerpc/platforms/83xx/mpc834x_itx.c b/arch/powerpc/platforms/83xx/mpc834x_itx.c index a494fa57bdf9..80aea8c4b5a3 100644 --- a/arch/powerpc/platforms/83xx/mpc834x_itx.c +++ b/arch/powerpc/platforms/83xx/mpc834x_itx.c | |||
@@ -38,7 +38,7 @@ | |||
38 | 38 | ||
39 | #include "mpc83xx.h" | 39 | #include "mpc83xx.h" |
40 | 40 | ||
41 | static struct of_device_id __initdata mpc834x_itx_ids[] = { | 41 | static const struct of_device_id mpc834x_itx_ids[] __initconst = { |
42 | { .compatible = "fsl,pq2pro-localbus", }, | 42 | { .compatible = "fsl,pq2pro-localbus", }, |
43 | {}, | 43 | {}, |
44 | }; | 44 | }; |
diff --git a/arch/powerpc/platforms/83xx/suspend.c b/arch/powerpc/platforms/83xx/suspend.c index 4b4c081df94d..eeb80e25214d 100644 --- a/arch/powerpc/platforms/83xx/suspend.c +++ b/arch/powerpc/platforms/83xx/suspend.c | |||
@@ -321,7 +321,7 @@ static const struct platform_suspend_ops mpc83xx_suspend_ops = { | |||
321 | .end = mpc83xx_suspend_end, | 321 | .end = mpc83xx_suspend_end, |
322 | }; | 322 | }; |
323 | 323 | ||
324 | static struct of_device_id pmc_match[]; | 324 | static const struct of_device_id pmc_match[]; |
325 | static int pmc_probe(struct platform_device *ofdev) | 325 | static int pmc_probe(struct platform_device *ofdev) |
326 | { | 326 | { |
327 | const struct of_device_id *match; | 327 | const struct of_device_id *match; |
@@ -420,7 +420,7 @@ static struct pmc_type pmc_types[] = { | |||
420 | } | 420 | } |
421 | }; | 421 | }; |
422 | 422 | ||
423 | static struct of_device_id pmc_match[] = { | 423 | static const struct of_device_id pmc_match[] = { |
424 | { | 424 | { |
425 | .compatible = "fsl,mpc8313-pmc", | 425 | .compatible = "fsl,mpc8313-pmc", |
426 | .data = &pmc_types[0], | 426 | .data = &pmc_types[0], |
diff --git a/arch/powerpc/platforms/85xx/common.c b/arch/powerpc/platforms/85xx/common.c index b564b5e23f7c..4a9ad871a168 100644 --- a/arch/powerpc/platforms/85xx/common.c +++ b/arch/powerpc/platforms/85xx/common.c | |||
@@ -14,7 +14,7 @@ | |||
14 | 14 | ||
15 | #include "mpc85xx.h" | 15 | #include "mpc85xx.h" |
16 | 16 | ||
17 | static struct of_device_id __initdata mpc85xx_common_ids[] = { | 17 | static const struct of_device_id mpc85xx_common_ids[] __initconst = { |
18 | { .type = "soc", }, | 18 | { .type = "soc", }, |
19 | { .compatible = "soc", }, | 19 | { .compatible = "soc", }, |
20 | { .compatible = "simple-bus", }, | 20 | { .compatible = "simple-bus", }, |
diff --git a/arch/powerpc/platforms/85xx/ppa8548.c b/arch/powerpc/platforms/85xx/ppa8548.c index 3daff7c63569..12019f17f297 100644 --- a/arch/powerpc/platforms/85xx/ppa8548.c +++ b/arch/powerpc/platforms/85xx/ppa8548.c | |||
@@ -59,7 +59,7 @@ static void ppa8548_show_cpuinfo(struct seq_file *m) | |||
59 | seq_printf(m, "PLL setting\t: 0x%x\n", ((phid1 >> 24) & 0x3f)); | 59 | seq_printf(m, "PLL setting\t: 0x%x\n", ((phid1 >> 24) & 0x3f)); |
60 | } | 60 | } |
61 | 61 | ||
62 | static struct of_device_id __initdata of_bus_ids[] = { | 62 | static const struct of_device_id of_bus_ids[] __initconst = { |
63 | { .name = "soc", }, | 63 | { .name = "soc", }, |
64 | { .type = "soc", }, | 64 | { .type = "soc", }, |
65 | { .compatible = "simple-bus", }, | 65 | { .compatible = "simple-bus", }, |
diff --git a/arch/powerpc/platforms/85xx/sgy_cts1000.c b/arch/powerpc/platforms/85xx/sgy_cts1000.c index bb75add67084..8162b0412117 100644 --- a/arch/powerpc/platforms/85xx/sgy_cts1000.c +++ b/arch/powerpc/platforms/85xx/sgy_cts1000.c | |||
@@ -24,7 +24,7 @@ | |||
24 | 24 | ||
25 | static struct device_node *halt_node; | 25 | static struct device_node *halt_node; |
26 | 26 | ||
27 | static struct of_device_id child_match[] = { | 27 | static const struct of_device_id child_match[] = { |
28 | { | 28 | { |
29 | .compatible = "sgy,gpio-halt", | 29 | .compatible = "sgy,gpio-halt", |
30 | }, | 30 | }, |
@@ -147,7 +147,7 @@ static int gpio_halt_remove(struct platform_device *pdev) | |||
147 | return 0; | 147 | return 0; |
148 | } | 148 | } |
149 | 149 | ||
150 | static struct of_device_id gpio_halt_match[] = { | 150 | static const struct of_device_id gpio_halt_match[] = { |
151 | /* We match on the gpio bus itself and scan the children since they | 151 | /* We match on the gpio bus itself and scan the children since they |
152 | * wont be matched against us. We know the bus wont match until it | 152 | * wont be matched against us. We know the bus wont match until it |
153 | * has been registered too. */ | 153 | * has been registered too. */ |
diff --git a/arch/powerpc/platforms/86xx/gef_ppc9a.c b/arch/powerpc/platforms/86xx/gef_ppc9a.c index c23f3443880a..bf17933b20f3 100644 --- a/arch/powerpc/platforms/86xx/gef_ppc9a.c +++ b/arch/powerpc/platforms/86xx/gef_ppc9a.c | |||
@@ -213,7 +213,7 @@ static long __init mpc86xx_time_init(void) | |||
213 | return 0; | 213 | return 0; |
214 | } | 214 | } |
215 | 215 | ||
216 | static __initdata struct of_device_id of_bus_ids[] = { | 216 | static const struct of_device_id of_bus_ids[] __initconst = { |
217 | { .compatible = "simple-bus", }, | 217 | { .compatible = "simple-bus", }, |
218 | { .compatible = "gianfar", }, | 218 | { .compatible = "gianfar", }, |
219 | { .compatible = "fsl,mpc8641-pcie", }, | 219 | { .compatible = "fsl,mpc8641-pcie", }, |
diff --git a/arch/powerpc/platforms/86xx/gef_sbc310.c b/arch/powerpc/platforms/86xx/gef_sbc310.c index 8a6ac20686ea..8facf5873866 100644 --- a/arch/powerpc/platforms/86xx/gef_sbc310.c +++ b/arch/powerpc/platforms/86xx/gef_sbc310.c | |||
@@ -200,7 +200,7 @@ static long __init mpc86xx_time_init(void) | |||
200 | return 0; | 200 | return 0; |
201 | } | 201 | } |
202 | 202 | ||
203 | static __initdata struct of_device_id of_bus_ids[] = { | 203 | static const struct of_device_id of_bus_ids[] __initconst = { |
204 | { .compatible = "simple-bus", }, | 204 | { .compatible = "simple-bus", }, |
205 | { .compatible = "gianfar", }, | 205 | { .compatible = "gianfar", }, |
206 | { .compatible = "fsl,mpc8641-pcie", }, | 206 | { .compatible = "fsl,mpc8641-pcie", }, |
diff --git a/arch/powerpc/platforms/86xx/gef_sbc610.c b/arch/powerpc/platforms/86xx/gef_sbc610.c index 06c72636f299..8c9058df5642 100644 --- a/arch/powerpc/platforms/86xx/gef_sbc610.c +++ b/arch/powerpc/platforms/86xx/gef_sbc610.c | |||
@@ -190,7 +190,7 @@ static long __init mpc86xx_time_init(void) | |||
190 | return 0; | 190 | return 0; |
191 | } | 191 | } |
192 | 192 | ||
193 | static __initdata struct of_device_id of_bus_ids[] = { | 193 | static const struct of_device_id of_bus_ids[] __initconst = { |
194 | { .compatible = "simple-bus", }, | 194 | { .compatible = "simple-bus", }, |
195 | { .compatible = "gianfar", }, | 195 | { .compatible = "gianfar", }, |
196 | { .compatible = "fsl,mpc8641-pcie", }, | 196 | { .compatible = "fsl,mpc8641-pcie", }, |
diff --git a/arch/powerpc/platforms/86xx/mpc8610_hpcd.c b/arch/powerpc/platforms/86xx/mpc8610_hpcd.c index d479d68fbb2b..55413a547ea8 100644 --- a/arch/powerpc/platforms/86xx/mpc8610_hpcd.c +++ b/arch/powerpc/platforms/86xx/mpc8610_hpcd.c | |||
@@ -85,7 +85,7 @@ static void __init mpc8610_suspend_init(void) | |||
85 | static inline void mpc8610_suspend_init(void) { } | 85 | static inline void mpc8610_suspend_init(void) { } |
86 | #endif /* CONFIG_SUSPEND */ | 86 | #endif /* CONFIG_SUSPEND */ |
87 | 87 | ||
88 | static struct of_device_id __initdata mpc8610_ids[] = { | 88 | static const struct of_device_id mpc8610_ids[] __initconst = { |
89 | { .compatible = "fsl,mpc8610-immr", }, | 89 | { .compatible = "fsl,mpc8610-immr", }, |
90 | { .compatible = "fsl,mpc8610-guts", }, | 90 | { .compatible = "fsl,mpc8610-guts", }, |
91 | { .compatible = "simple-bus", }, | 91 | { .compatible = "simple-bus", }, |
diff --git a/arch/powerpc/platforms/86xx/mpc86xx_hpcn.c b/arch/powerpc/platforms/86xx/mpc86xx_hpcn.c index e8bf3fae5606..07ccb1b0cc7d 100644 --- a/arch/powerpc/platforms/86xx/mpc86xx_hpcn.c +++ b/arch/powerpc/platforms/86xx/mpc86xx_hpcn.c | |||
@@ -127,7 +127,7 @@ mpc86xx_time_init(void) | |||
127 | return 0; | 127 | return 0; |
128 | } | 128 | } |
129 | 129 | ||
130 | static __initdata struct of_device_id of_bus_ids[] = { | 130 | static const struct of_device_id of_bus_ids[] __initconst = { |
131 | { .compatible = "simple-bus", }, | 131 | { .compatible = "simple-bus", }, |
132 | { .compatible = "fsl,srio", }, | 132 | { .compatible = "fsl,srio", }, |
133 | { .compatible = "gianfar", }, | 133 | { .compatible = "gianfar", }, |
diff --git a/arch/powerpc/platforms/86xx/sbc8641d.c b/arch/powerpc/platforms/86xx/sbc8641d.c index b47a8fd0f3d3..6810b71d54a7 100644 --- a/arch/powerpc/platforms/86xx/sbc8641d.c +++ b/arch/powerpc/platforms/86xx/sbc8641d.c | |||
@@ -92,7 +92,7 @@ mpc86xx_time_init(void) | |||
92 | return 0; | 92 | return 0; |
93 | } | 93 | } |
94 | 94 | ||
95 | static __initdata struct of_device_id of_bus_ids[] = { | 95 | static const struct of_device_id of_bus_ids[] __initconst = { |
96 | { .compatible = "simple-bus", }, | 96 | { .compatible = "simple-bus", }, |
97 | { .compatible = "gianfar", }, | 97 | { .compatible = "gianfar", }, |
98 | { .compatible = "fsl,mpc8641-pcie", }, | 98 | { .compatible = "fsl,mpc8641-pcie", }, |
diff --git a/arch/powerpc/platforms/8xx/adder875.c b/arch/powerpc/platforms/8xx/adder875.c index 82363e98f50e..61cae4c1edb8 100644 --- a/arch/powerpc/platforms/8xx/adder875.c +++ b/arch/powerpc/platforms/8xx/adder875.c | |||
@@ -92,7 +92,7 @@ static int __init adder875_probe(void) | |||
92 | return of_flat_dt_is_compatible(root, "analogue-and-micro,adder875"); | 92 | return of_flat_dt_is_compatible(root, "analogue-and-micro,adder875"); |
93 | } | 93 | } |
94 | 94 | ||
95 | static __initdata struct of_device_id of_bus_ids[] = { | 95 | static const struct of_device_id of_bus_ids[] __initconst = { |
96 | { .compatible = "simple-bus", }, | 96 | { .compatible = "simple-bus", }, |
97 | {}, | 97 | {}, |
98 | }; | 98 | }; |
diff --git a/arch/powerpc/platforms/8xx/ep88xc.c b/arch/powerpc/platforms/8xx/ep88xc.c index e62166681d08..2bedeb7d5f8f 100644 --- a/arch/powerpc/platforms/8xx/ep88xc.c +++ b/arch/powerpc/platforms/8xx/ep88xc.c | |||
@@ -147,7 +147,7 @@ static int __init ep88xc_probe(void) | |||
147 | return of_flat_dt_is_compatible(root, "fsl,ep88xc"); | 147 | return of_flat_dt_is_compatible(root, "fsl,ep88xc"); |
148 | } | 148 | } |
149 | 149 | ||
150 | static struct of_device_id __initdata of_bus_ids[] = { | 150 | static const struct of_device_id of_bus_ids[] __initconst = { |
151 | { .name = "soc", }, | 151 | { .name = "soc", }, |
152 | { .name = "cpm", }, | 152 | { .name = "cpm", }, |
153 | { .name = "localbus", }, | 153 | { .name = "localbus", }, |
diff --git a/arch/powerpc/platforms/8xx/mpc86xads_setup.c b/arch/powerpc/platforms/8xx/mpc86xads_setup.c index 63084640c5c5..78180c5e73ff 100644 --- a/arch/powerpc/platforms/8xx/mpc86xads_setup.c +++ b/arch/powerpc/platforms/8xx/mpc86xads_setup.c | |||
@@ -122,7 +122,7 @@ static int __init mpc86xads_probe(void) | |||
122 | return of_flat_dt_is_compatible(root, "fsl,mpc866ads"); | 122 | return of_flat_dt_is_compatible(root, "fsl,mpc866ads"); |
123 | } | 123 | } |
124 | 124 | ||
125 | static struct of_device_id __initdata of_bus_ids[] = { | 125 | static const struct of_device_id of_bus_ids[] __initconst = { |
126 | { .name = "soc", }, | 126 | { .name = "soc", }, |
127 | { .name = "cpm", }, | 127 | { .name = "cpm", }, |
128 | { .name = "localbus", }, | 128 | { .name = "localbus", }, |
diff --git a/arch/powerpc/platforms/8xx/mpc885ads_setup.c b/arch/powerpc/platforms/8xx/mpc885ads_setup.c index 5921dcb498fd..4d62bf9dc789 100644 --- a/arch/powerpc/platforms/8xx/mpc885ads_setup.c +++ b/arch/powerpc/platforms/8xx/mpc885ads_setup.c | |||
@@ -197,7 +197,7 @@ static int __init mpc885ads_probe(void) | |||
197 | return of_flat_dt_is_compatible(root, "fsl,mpc885ads"); | 197 | return of_flat_dt_is_compatible(root, "fsl,mpc885ads"); |
198 | } | 198 | } |
199 | 199 | ||
200 | static struct of_device_id __initdata of_bus_ids[] = { | 200 | static const struct of_device_id of_bus_ids[] __initconst = { |
201 | { .name = "soc", }, | 201 | { .name = "soc", }, |
202 | { .name = "cpm", }, | 202 | { .name = "cpm", }, |
203 | { .name = "localbus", }, | 203 | { .name = "localbus", }, |
diff --git a/arch/powerpc/platforms/8xx/tqm8xx_setup.c b/arch/powerpc/platforms/8xx/tqm8xx_setup.c index dda607807def..bee47a2b23e6 100644 --- a/arch/powerpc/platforms/8xx/tqm8xx_setup.c +++ b/arch/powerpc/platforms/8xx/tqm8xx_setup.c | |||
@@ -124,7 +124,7 @@ static int __init tqm8xx_probe(void) | |||
124 | return of_flat_dt_is_compatible(node, "tqc,tqm8xx"); | 124 | return of_flat_dt_is_compatible(node, "tqc,tqm8xx"); |
125 | } | 125 | } |
126 | 126 | ||
127 | static struct of_device_id __initdata of_bus_ids[] = { | 127 | static const struct of_device_id of_bus_ids[] __initconst = { |
128 | { .name = "soc", }, | 128 | { .name = "soc", }, |
129 | { .name = "cpm", }, | 129 | { .name = "cpm", }, |
130 | { .name = "localbus", }, | 130 | { .name = "localbus", }, |
diff --git a/arch/powerpc/platforms/cell/celleb_pci.c b/arch/powerpc/platforms/cell/celleb_pci.c index 173568140a32..2b98a36ef8fb 100644 --- a/arch/powerpc/platforms/cell/celleb_pci.c +++ b/arch/powerpc/platforms/cell/celleb_pci.c | |||
@@ -454,7 +454,7 @@ static struct celleb_phb_spec celleb_fake_pci_spec __initdata = { | |||
454 | .setup = celleb_setup_fake_pci, | 454 | .setup = celleb_setup_fake_pci, |
455 | }; | 455 | }; |
456 | 456 | ||
457 | static struct of_device_id celleb_phb_match[] __initdata = { | 457 | static const struct of_device_id celleb_phb_match[] __initconst = { |
458 | { | 458 | { |
459 | .name = "pci-pseudo", | 459 | .name = "pci-pseudo", |
460 | .data = &celleb_fake_pci_spec, | 460 | .data = &celleb_fake_pci_spec, |
diff --git a/arch/powerpc/platforms/cell/celleb_setup.c b/arch/powerpc/platforms/cell/celleb_setup.c index 1d5a4d8ddad9..34e8ce2976aa 100644 --- a/arch/powerpc/platforms/cell/celleb_setup.c +++ b/arch/powerpc/platforms/cell/celleb_setup.c | |||
@@ -102,7 +102,7 @@ static void __init celleb_setup_arch_common(void) | |||
102 | #endif | 102 | #endif |
103 | } | 103 | } |
104 | 104 | ||
105 | static struct of_device_id celleb_bus_ids[] __initdata = { | 105 | static const struct of_device_id celleb_bus_ids[] __initconst = { |
106 | { .type = "scc", }, | 106 | { .type = "scc", }, |
107 | { .type = "ioif", }, /* old style */ | 107 | { .type = "ioif", }, /* old style */ |
108 | {}, | 108 | {}, |
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 | ||
93 | static struct of_device_id gamecube_of_bus[] = { | 93 | static 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 | ||
24 | static __initdata struct of_device_id of_bus_ids[] = { | 24 | static 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 | ||
152 | static struct of_device_id mvme5100_of_bus_ids[] __initdata = { | 152 | static 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 | ||
27 | static __initdata struct of_device_id storcenter_of_bus[] = { | 27 | static 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 | ||
238 | static struct of_device_id wii_of_bus[] = { | 238 | static const struct of_device_id wii_of_bus[] = { |
239 | { .compatible = "nintendo,hollywood", }, | 239 | { .compatible = "nintendo,hollywood", }, |
240 | { }, | 240 | { }, |
241 | }; | 241 | }; |
diff --git a/arch/powerpc/platforms/pasemi/gpio_mdio.c b/arch/powerpc/platforms/pasemi/gpio_mdio.c index 15adee544638..ada33358950d 100644 --- a/arch/powerpc/platforms/pasemi/gpio_mdio.c +++ b/arch/powerpc/platforms/pasemi/gpio_mdio.c | |||
@@ -290,7 +290,7 @@ static int gpio_mdio_remove(struct platform_device *dev) | |||
290 | return 0; | 290 | return 0; |
291 | } | 291 | } |
292 | 292 | ||
293 | static struct of_device_id gpio_mdio_match[] = | 293 | static const struct of_device_id gpio_mdio_match[] = |
294 | { | 294 | { |
295 | { | 295 | { |
296 | .compatible = "gpio-mdio", | 296 | .compatible = "gpio-mdio", |
diff --git a/arch/powerpc/platforms/pasemi/setup.c b/arch/powerpc/platforms/pasemi/setup.c index 8c54de6d8ec4..d71b2c7e8403 100644 --- a/arch/powerpc/platforms/pasemi/setup.c +++ b/arch/powerpc/platforms/pasemi/setup.c | |||
@@ -393,7 +393,7 @@ static inline void pasemi_pcmcia_init(void) | |||
393 | #endif | 393 | #endif |
394 | 394 | ||
395 | 395 | ||
396 | static struct of_device_id pasemi_bus_ids[] = { | 396 | static const struct of_device_id pasemi_bus_ids[] = { |
397 | /* Unfortunately needed for legacy firmwares */ | 397 | /* Unfortunately needed for legacy firmwares */ |
398 | { .type = "localbus", }, | 398 | { .type = "localbus", }, |
399 | { .type = "sdc", }, | 399 | { .type = "sdc", }, |
diff --git a/arch/powerpc/sysdev/axonram.c b/arch/powerpc/sysdev/axonram.c index 47b6b9f81d43..ad56edc39919 100644 --- a/arch/powerpc/sysdev/axonram.c +++ b/arch/powerpc/sysdev/axonram.c | |||
@@ -314,7 +314,7 @@ axon_ram_remove(struct platform_device *device) | |||
314 | return 0; | 314 | return 0; |
315 | } | 315 | } |
316 | 316 | ||
317 | static struct of_device_id axon_ram_device_id[] = { | 317 | static const struct of_device_id axon_ram_device_id[] = { |
318 | { | 318 | { |
319 | .type = "dma-memory" | 319 | .type = "dma-memory" |
320 | }, | 320 | }, |
diff --git a/arch/powerpc/sysdev/fsl_85xx_l2ctlr.c b/arch/powerpc/sysdev/fsl_85xx_l2ctlr.c index afc2dbf37011..90545ad1626e 100644 --- a/arch/powerpc/sysdev/fsl_85xx_l2ctlr.c +++ b/arch/powerpc/sysdev/fsl_85xx_l2ctlr.c | |||
@@ -171,7 +171,7 @@ static int mpc85xx_l2ctlr_of_remove(struct platform_device *dev) | |||
171 | return 0; | 171 | return 0; |
172 | } | 172 | } |
173 | 173 | ||
174 | static struct of_device_id mpc85xx_l2ctlr_of_match[] = { | 174 | static const struct of_device_id mpc85xx_l2ctlr_of_match[] = { |
175 | { | 175 | { |
176 | .compatible = "fsl,p2020-l2-cache-controller", | 176 | .compatible = "fsl,p2020-l2-cache-controller", |
177 | }, | 177 | }, |
diff --git a/arch/powerpc/sysdev/mv64x60_dev.c b/arch/powerpc/sysdev/mv64x60_dev.c index c2dba7db71ad..026bbc3b2c47 100644 --- a/arch/powerpc/sysdev/mv64x60_dev.c +++ b/arch/powerpc/sysdev/mv64x60_dev.c | |||
@@ -23,7 +23,7 @@ | |||
23 | 23 | ||
24 | /* These functions provide the necessary setup for the mv64x60 drivers. */ | 24 | /* These functions provide the necessary setup for the mv64x60 drivers. */ |
25 | 25 | ||
26 | static struct of_device_id __initdata of_mv64x60_devices[] = { | 26 | static const struct of_device_id of_mv64x60_devices[] __initconst = { |
27 | { .compatible = "marvell,mv64306-devctrl", }, | 27 | { .compatible = "marvell,mv64306-devctrl", }, |
28 | {} | 28 | {} |
29 | }; | 29 | }; |
diff --git a/arch/powerpc/sysdev/pmi.c b/arch/powerpc/sysdev/pmi.c index 5aaf86c03893..13e67d93a7c1 100644 --- a/arch/powerpc/sysdev/pmi.c +++ b/arch/powerpc/sysdev/pmi.c | |||
@@ -101,7 +101,7 @@ out: | |||
101 | } | 101 | } |
102 | 102 | ||
103 | 103 | ||
104 | static struct of_device_id pmi_match[] = { | 104 | static const struct of_device_id pmi_match[] = { |
105 | { .type = "ibm,pmi", .name = "ibm,pmi" }, | 105 | { .type = "ibm,pmi", .name = "ibm,pmi" }, |
106 | { .type = "ibm,pmi" }, | 106 | { .type = "ibm,pmi" }, |
107 | {}, | 107 | {}, |
diff --git a/arch/powerpc/sysdev/xilinx_intc.c b/arch/powerpc/sysdev/xilinx_intc.c index 83f943a8e0db..56f0524e47a6 100644 --- a/arch/powerpc/sysdev/xilinx_intc.c +++ b/arch/powerpc/sysdev/xilinx_intc.c | |||
@@ -265,7 +265,7 @@ static void __init xilinx_i8259_setup_cascade(void) | |||
265 | static inline void xilinx_i8259_setup_cascade(void) { return; } | 265 | static inline void xilinx_i8259_setup_cascade(void) { return; } |
266 | #endif /* defined(CONFIG_PPC_I8259) */ | 266 | #endif /* defined(CONFIG_PPC_I8259) */ |
267 | 267 | ||
268 | static struct of_device_id xilinx_intc_match[] __initconst = { | 268 | static const struct of_device_id xilinx_intc_match[] __initconst = { |
269 | { .compatible = "xlnx,opb-intc-1.00.c", }, | 269 | { .compatible = "xlnx,opb-intc-1.00.c", }, |
270 | { .compatible = "xlnx,xps-intc-1.00.a", }, | 270 | { .compatible = "xlnx,xps-intc-1.00.a", }, |
271 | {} | 271 | {} |
diff --git a/arch/powerpc/sysdev/xilinx_pci.c b/arch/powerpc/sysdev/xilinx_pci.c index 1453b0eed220..fea5667699ed 100644 --- a/arch/powerpc/sysdev/xilinx_pci.c +++ b/arch/powerpc/sysdev/xilinx_pci.c | |||
@@ -27,7 +27,7 @@ | |||
27 | 27 | ||
28 | #define PCI_HOST_ENABLE_CMD PCI_COMMAND_SERR | PCI_COMMAND_PARITY | PCI_COMMAND_MASTER | PCI_COMMAND_MEMORY | 28 | #define PCI_HOST_ENABLE_CMD PCI_COMMAND_SERR | PCI_COMMAND_PARITY | PCI_COMMAND_MASTER | PCI_COMMAND_MEMORY |
29 | 29 | ||
30 | static struct of_device_id xilinx_pci_match[] = { | 30 | static const struct of_device_id xilinx_pci_match[] = { |
31 | { .compatible = "xlnx,plbv46-pci-1.03.a", }, | 31 | { .compatible = "xlnx,plbv46-pci-1.03.a", }, |
32 | {} | 32 | {} |
33 | }; | 33 | }; |