]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
powerpc: make of_device_ids const
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Wed, 10 Sep 2014 19:56:38 +0000 (21:56 +0200)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 25 Sep 2014 13:14:46 +0000 (23:14 +1000)
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>
58 files changed:
arch/powerpc/kernel/ibmebus.c
arch/powerpc/kernel/legacy_serial.c
arch/powerpc/kernel/of_platform.c
arch/powerpc/platforms/40x/ep405.c
arch/powerpc/platforms/40x/ppc40x_simple.c
arch/powerpc/platforms/40x/virtex.c
arch/powerpc/platforms/40x/walnut.c
arch/powerpc/platforms/44x/canyonlands.c
arch/powerpc/platforms/44x/ebony.c
arch/powerpc/platforms/44x/iss4xx.c
arch/powerpc/platforms/44x/ppc44x_simple.c
arch/powerpc/platforms/44x/ppc476.c
arch/powerpc/platforms/44x/sam440ep.c
arch/powerpc/platforms/44x/virtex.c
arch/powerpc/platforms/44x/warp.c
arch/powerpc/platforms/512x/mpc512x_shared.c
arch/powerpc/platforms/52xx/lite5200.c
arch/powerpc/platforms/52xx/media5200.c
arch/powerpc/platforms/52xx/mpc52xx_common.c
arch/powerpc/platforms/52xx/mpc52xx_lpbfifo.c
arch/powerpc/platforms/52xx/mpc52xx_pic.c
arch/powerpc/platforms/82xx/ep8248e.c
arch/powerpc/platforms/82xx/km82xx.c
arch/powerpc/platforms/82xx/mpc8272_ads.c
arch/powerpc/platforms/82xx/pq2fads.c
arch/powerpc/platforms/83xx/mcu_mpc8349emitx.c
arch/powerpc/platforms/83xx/misc.c
arch/powerpc/platforms/83xx/mpc834x_itx.c
arch/powerpc/platforms/83xx/suspend.c
arch/powerpc/platforms/85xx/common.c
arch/powerpc/platforms/85xx/ppa8548.c
arch/powerpc/platforms/85xx/sgy_cts1000.c
arch/powerpc/platforms/86xx/gef_ppc9a.c
arch/powerpc/platforms/86xx/gef_sbc310.c
arch/powerpc/platforms/86xx/gef_sbc610.c
arch/powerpc/platforms/86xx/mpc8610_hpcd.c
arch/powerpc/platforms/86xx/mpc86xx_hpcn.c
arch/powerpc/platforms/86xx/sbc8641d.c
arch/powerpc/platforms/8xx/adder875.c
arch/powerpc/platforms/8xx/ep88xc.c
arch/powerpc/platforms/8xx/mpc86xads_setup.c
arch/powerpc/platforms/8xx/mpc885ads_setup.c
arch/powerpc/platforms/8xx/tqm8xx_setup.c
arch/powerpc/platforms/cell/celleb_pci.c
arch/powerpc/platforms/cell/celleb_setup.c
arch/powerpc/platforms/embedded6xx/gamecube.c
arch/powerpc/platforms/embedded6xx/linkstation.c
arch/powerpc/platforms/embedded6xx/mvme5100.c
arch/powerpc/platforms/embedded6xx/storcenter.c
arch/powerpc/platforms/embedded6xx/wii.c
arch/powerpc/platforms/pasemi/gpio_mdio.c
arch/powerpc/platforms/pasemi/setup.c
arch/powerpc/sysdev/axonram.c
arch/powerpc/sysdev/fsl_85xx_l2ctlr.c
arch/powerpc/sysdev/mv64x60_dev.c
arch/powerpc/sysdev/pmi.c
arch/powerpc/sysdev/xilinx_intc.c
arch/powerpc/sysdev/xilinx_pci.c

index 1114d13ac19f6ec5e0294a2d197e2db3ec8e6814..ac86c53e25428baaad22800ae1cedb2775680732 100644 (file)
@@ -55,7 +55,7 @@ static struct device ibmebus_bus_device = { /* fake "parent" device */
 struct bus_type ibmebus_bus_type;
 
 /* These devices will automatically be added to the bus during init */
-static struct of_device_id __initdata ibmebus_matches[] = {
+static const struct of_device_id ibmebus_matches[] __initconst = {
        { .compatible = "IBM,lhca" },
        { .compatible = "IBM,lhea" },
        {},
index 936258881c98ccaee684998a3d05b2485c7fce0c..7b750c4ed5c73a5a1e7a4dfa8aa2e6055ae933d3 100644 (file)
@@ -35,7 +35,7 @@ static struct legacy_serial_info {
        phys_addr_t                     taddr;
 } legacy_serial_infos[MAX_LEGACY_SERIAL_PORTS];
 
-static struct of_device_id legacy_serial_parents[] __initdata = {
+static const struct of_device_id legacy_serial_parents[] __initconst = {
        {.type = "soc",},
        {.type = "tsi-bridge",},
        {.type = "opb", },
index a7b743076720d3a2fc04dad98be34b0d55b40978..f87bc1b4bdda60c6bf68a966eb8496e9498da8b7 100644 (file)
@@ -97,7 +97,7 @@ static int of_pci_phb_probe(struct platform_device *dev)
        return 0;
 }
 
-static struct of_device_id of_pci_phb_ids[] = {
+static const struct of_device_id of_pci_phb_ids[] = {
        { .type = "pci", },
        { .type = "pcix", },
        { .type = "pcie", },
index b0389bbe4f94328206eb00bf4d384e6c9c9fbc93..ddc12a1926ef0a189dc7e7d591c87cf5b80cbf2b 100644 (file)
@@ -49,7 +49,7 @@ static void __iomem *bcsr_regs;
 /* there's more, can't be bothered typing them tho */
 
 
-static __initdata struct of_device_id ep405_of_bus[] = {
+static const struct of_device_id ep405_of_bus[] __initconst = {
        { .compatible = "ibm,plb3", },
        { .compatible = "ibm,opb", },
        { .compatible = "ibm,ebc", },
index 8f3920e5a046c4df771ecd30371154a84e813d82..b0c46375dd9567d9b85d19688ab1f0bb5b102fd3 100644 (file)
@@ -24,7 +24,7 @@
 #include <linux/init.h>
 #include <linux/of_platform.h>
 
-static __initdata struct of_device_id ppc40x_of_bus[] = {
+static const struct of_device_id ppc40x_of_bus[] __initconst = {
        { .compatible = "ibm,plb3", },
        { .compatible = "ibm,plb4", },
        { .compatible = "ibm,opb", },
index d0fc6866b00ca04884a2a39bb1d0922763e5a6a0..9aa7ae2f4164ba45c51f0522aac1bb5ccccc032d 100644 (file)
@@ -17,7 +17,7 @@
 #include <asm/xilinx_pci.h>
 #include <asm/ppc4xx.h>
 
-static struct of_device_id xilinx_of_bus_ids[] __initdata = {
+static const struct of_device_id xilinx_of_bus_ids[] __initconst = {
        { .compatible = "xlnx,plb-v46-1.00.a", },
        { .compatible = "xlnx,plb-v34-1.01.a", },
        { .compatible = "xlnx,plb-v34-1.02.a", },
index 8b691df72f745232b85a349b702c4a72d6869288..f7ac2d0fcb4461023371b08d3ab67e2770b33a47 100644 (file)
@@ -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", },
index e300dd4c89bff9964ecfaf72734fbf9c08a03352..22ca5430c9cb5614256bc2cd939d628fb4ad8bd2 100644 (file)
@@ -33,7 +33,7 @@
 
 #define BCSR_USB_EN    0x11
 
-static __initdata struct of_device_id ppc460ex_of_bus[] = {
+static const struct of_device_id ppc460ex_of_bus[] __initconst = {
        { .compatible = "ibm,plb4", },
        { .compatible = "ibm,opb", },
        { .compatible = "ibm,ebc", },
index 6a4232bbdf88a35e9d4c1baa76eb37a620c7a8be..ae893226392dbf4f5494a95a55070ac758e7c685 100644 (file)
@@ -28,7 +28,7 @@
 #include <asm/pci-bridge.h>
 #include <asm/ppc4xx.h>
 
-static __initdata struct of_device_id ebony_of_bus[] = {
+static const struct of_device_id ebony_of_bus[] __initconst = {
        { .compatible = "ibm,plb4", },
        { .compatible = "ibm,opb", },
        { .compatible = "ibm,ebc", },
index 4241bc825800d72450bc994bacf2a4203fd9aa63..c7c6758b3cfe56ff8a8c919adb6921d4b382c69d 100644 (file)
@@ -32,7 +32,7 @@
 #include <asm/mpic.h>
 #include <asm/mmu.h>
 
-static __initdata struct of_device_id iss4xx_of_bus[] = {
+static const struct of_device_id iss4xx_of_bus[] __initconst = {
        { .compatible = "ibm,plb4", },
        { .compatible = "ibm,plb6", },
        { .compatible = "ibm,opb", },
index 3ffb915446e39bdf74f716395a6a05f8e559c632..573c3d2689c616981186c3c083b28d73c950e1e2 100644 (file)
@@ -24,7 +24,7 @@
 #include <linux/init.h>
 #include <linux/of_platform.h>
 
-static __initdata struct of_device_id ppc44x_of_bus[] = {
+static const struct of_device_id ppc44x_of_bus[] __initconst = {
        { .compatible = "ibm,plb4", },
        { .compatible = "ibm,opb", },
        { .compatible = "ibm,ebc", },
index 33986c1a05da2eaa6e1722dac53de62a2586f304..58db9d0839698fa65429e40703f196d416f7d02a 100644 (file)
@@ -38,7 +38,7 @@
 #include <linux/pci.h>
 #include <linux/i2c.h>
 
-static struct of_device_id ppc47x_of_bus[] __initdata = {
+static const struct of_device_id ppc47x_of_bus[] __initconst = {
        { .compatible = "ibm,plb4", },
        { .compatible = "ibm,plb6", },
        { .compatible = "ibm,opb", },
index 9e09b835758bc85479531469cfb2dff02b2e4e0d..3ee4a03c14969cccbdea835ed96287cb50d65377 100644 (file)
@@ -29,7 +29,7 @@
 #include <asm/ppc4xx.h>
 #include <linux/i2c.h>
 
-static __initdata struct of_device_id sam440ep_of_bus[] = {
+static const struct of_device_id sam440ep_of_bus[] __initconst = {
        { .compatible = "ibm,plb4", },
        { .compatible = "ibm,opb", },
        { .compatible = "ibm,ebc", },
index cf96ccaa760cd98ca9efc3cedf12f653e7e8f43d..ad272c17c640f561a1ed790c3fd40bc7f6359d9b 100644 (file)
@@ -21,7 +21,7 @@
 #include <asm/ppc4xx.h>
 #include "44x.h"
 
-static struct of_device_id xilinx_of_bus_ids[] __initdata = {
+static const struct of_device_id xilinx_of_bus_ids[] __initconst = {
        { .compatible = "simple-bus", },
        { .compatible = "xlnx,plb-v46-1.00.a", },
        { .compatible = "xlnx,plb-v46-1.02.a", },
index 3a104284b338f700d1ec56478dcb679859db514f..501333cf42cf194743528e0017477a095bbf3bfb 100644 (file)
@@ -28,7 +28,7 @@
 #include <asm/dma.h>
 
 
-static __initdata struct of_device_id warp_of_bus[] = {
+static const struct of_device_id warp_of_bus[] __initconst = {
        { .compatible = "ibm,plb4", },
        { .compatible = "ibm,opb", },
        { .compatible = "ibm,ebc", },
index adb95f03d4d4b20002992977120bd8a27073dc88..e996e007bc44cef80ab30541f4b045bd5e87158c 100644 (file)
@@ -337,7 +337,7 @@ void __init mpc512x_init_IRQ(void)
 /*
  * Nodes to do bus probe on, soc and localbus
  */
-static struct of_device_id __initdata of_bus_ids[] = {
+static const struct of_device_id of_bus_ids[] __initconst = {
        { .compatible = "fsl,mpc5121-immr", },
        { .compatible = "fsl,mpc5121-localbus", },
        { .compatible = "fsl,mpc5121-mbx", },
index 1843bc9320118b84d47cc2e44a5a083b891de6c0..7492de3cf6d058bb38e56bca84dd4f34be6b51e3 100644 (file)
  */
 
 /* mpc5200 device tree match tables */
-static struct of_device_id mpc5200_cdm_ids[] __initdata = {
+static const struct of_device_id mpc5200_cdm_ids[] __initconst = {
        { .compatible = "fsl,mpc5200-cdm", },
        { .compatible = "mpc5200-cdm", },
        {}
 };
 
-static struct of_device_id mpc5200_gpio_ids[] __initdata = {
+static const struct of_device_id mpc5200_gpio_ids[] __initconst = {
        { .compatible = "fsl,mpc5200-gpio", },
        { .compatible = "mpc5200-gpio", },
        {}
index 070d315dd6cd18359a4b62bb0927ca3681f84998..32cae33c4266b990d2dc88d89cc6d6df8ae9a9df 100644 (file)
@@ -30,7 +30,7 @@
 #include <asm/machdep.h>
 #include <asm/mpc52xx.h>
 
-static struct of_device_id mpc5200_gpio_ids[] __initdata = {
+static const struct of_device_id mpc5200_gpio_ids[] __initconst = {
        { .compatible = "fsl,mpc5200-gpio", },
        { .compatible = "mpc5200-gpio", },
        {}
index d7e94f49532a156f78f3fc2da2d98b73e60c0554..26993826a797683e0fea881fc7f6f1c11fa0c703 100644 (file)
 #include <asm/mpc52xx.h>
 
 /* MPC5200 device tree match tables */
-static struct of_device_id mpc52xx_xlb_ids[] __initdata = {
+static const struct of_device_id mpc52xx_xlb_ids[] __initconst = {
        { .compatible = "fsl,mpc5200-xlb", },
        { .compatible = "mpc5200-xlb", },
        {}
 };
-static struct of_device_id mpc52xx_bus_ids[] __initdata = {
+static const struct of_device_id mpc52xx_bus_ids[] __initconst = {
        { .compatible = "fsl,mpc5200-immr", },
        { .compatible = "fsl,mpc5200b-immr", },
        { .compatible = "simple-bus", },
@@ -108,21 +108,21 @@ void __init mpc52xx_declare_of_platform_devices(void)
 /*
  * match tables used by mpc52xx_map_common_devices()
  */
-static struct of_device_id mpc52xx_gpt_ids[] __initdata = {
+static const struct of_device_id mpc52xx_gpt_ids[] __initconst = {
        { .compatible = "fsl,mpc5200-gpt", },
        { .compatible = "mpc5200-gpt", }, /* old */
        {}
 };
-static struct of_device_id mpc52xx_cdm_ids[] __initdata = {
+static const struct of_device_id mpc52xx_cdm_ids[] __initconst = {
        { .compatible = "fsl,mpc5200-cdm", },
        { .compatible = "mpc5200-cdm", }, /* old */
        {}
 };
-static const struct of_device_id mpc52xx_gpio_simple[] = {
+static const struct of_device_id mpc52xx_gpio_simple[] __initconst = {
        { .compatible = "fsl,mpc5200-gpio", },
        {}
 };
-static const struct of_device_id mpc52xx_gpio_wkup[] = {
+static const struct of_device_id mpc52xx_gpio_wkup[] __initconst = {
        { .compatible = "fsl,mpc5200-gpio-wkup", },
        {}
 };
index 37f7a89c10f2581c0366606d471623cc26bf4997..f8f0081759fb7941ab70de2994c07ffb70e8ec5d 100644 (file)
@@ -564,7 +564,7 @@ static int mpc52xx_lpbfifo_remove(struct platform_device *op)
        return 0;
 }
 
-static struct of_device_id mpc52xx_lpbfifo_match[] = {
+static const struct of_device_id mpc52xx_lpbfifo_match[] = {
        { .compatible = "fsl,mpc5200-lpbfifo", },
        {},
 };
index 2898b737deb79e5015c7658568a696254d6f23b5..2944bc84b9d6fc790bc2b3ece7878cdf1ff208ba 100644 (file)
 
 
 /* MPC5200 device tree match tables */
-static struct of_device_id mpc52xx_pic_ids[] __initdata = {
+static const struct of_device_id mpc52xx_pic_ids[] __initconst = {
        { .compatible = "fsl,mpc5200-pic", },
        { .compatible = "mpc5200-pic", },
        {}
 };
-static struct of_device_id mpc52xx_sdma_ids[] __initdata = {
+static const struct of_device_id mpc52xx_sdma_ids[] __initconst = {
        { .compatible = "fsl,mpc5200-bestcomm", },
        { .compatible = "mpc5200-bestcomm", },
        {}
index 79799b29ffe21912dfa437885d2affaf8e916912..3d0c3a01143de70d8bac28a1e884fed0c64cfe24 100644 (file)
@@ -298,7 +298,7 @@ static void __init ep8248e_setup_arch(void)
                ppc_md.progress("ep8248e_setup_arch(), finish", 0);
 }
 
-static  __initdata struct of_device_id of_bus_ids[] = {
+static const struct of_device_id of_bus_ids[] __initconst = {
        { .compatible = "simple-bus", },
        { .compatible = "fsl,ep8248e-bcsr", },
        {},
index 058cc1895c886588a2a7886fd3f4510d5f6b5af1..387b446f416111982ab16390e16ffea65eeb5642 100644 (file)
@@ -180,7 +180,7 @@ static void __init km82xx_setup_arch(void)
                ppc_md.progress("km82xx_setup_arch(), finish", 0);
 }
 
-static  __initdata struct of_device_id of_bus_ids[] = {
+static const struct of_device_id of_bus_ids[] __initconst = {
        { .compatible = "simple-bus", },
        {},
 };
index 6a14cf50f4a27ec21409018f435c48361979321d..d24deacf07d0796120b60517cf7ea849a2bb5630 100644 (file)
@@ -181,7 +181,7 @@ static void __init mpc8272_ads_setup_arch(void)
                ppc_md.progress("mpc8272_ads_setup_arch(), finish", 0);
 }
 
-static struct of_device_id __initdata of_bus_ids[] = {
+static const struct of_device_id of_bus_ids[] __initconst = {
        { .name = "soc", },
        { .name = "cpm", },
        { .name = "localbus", },
index e5f82ec8df17b54d8b8bac693074c741207a649e..3a5164ad10ad73a77a1a77df7c50b7e3420a6732 100644 (file)
@@ -168,7 +168,7 @@ static int __init pq2fads_probe(void)
        return of_flat_dt_is_compatible(root, "fsl,pq2fads");
 }
 
-static struct of_device_id __initdata of_bus_ids[] = {
+static const struct of_device_id of_bus_ids[] __initconst = {
        { .name = "soc", },
        { .name = "cpm", },
        { .name = "localbus", },
index e238b6a55b1593e08f43e029bf6b4f9af1a7836f..31053eec5cd0baa341731fca8375ee42edcd260a 100644 (file)
@@ -213,7 +213,7 @@ static const struct i2c_device_id mcu_ids[] = {
 };
 MODULE_DEVICE_TABLE(i2c, mcu_ids);
 
-static struct of_device_id mcu_of_match_table[] = {
+static const struct of_device_id mcu_of_match_table[] = {
        { .compatible = "fsl,mcu-mpc8349emitx", },
        { },
 };
index 125336f750c6969273d70d09e0eeefc39cb5a0c5..ef9d01a049c16755ddf2616f4a9babfec0867de5 100644 (file)
@@ -114,7 +114,7 @@ void __init mpc83xx_ipic_and_qe_init_IRQ(void)
 }
 #endif /* CONFIG_QUICC_ENGINE */
 
-static struct of_device_id __initdata of_bus_ids[] = {
+static const struct of_device_id of_bus_ids[] __initconst = {
        { .type = "soc", },
        { .compatible = "soc", },
        { .compatible = "simple-bus" },
index a494fa57bdf9b1ef78060531e78729251a472aca..80aea8c4b5a3b2c96d5a2f03490568085d07075b 100644 (file)
@@ -38,7 +38,7 @@
 
 #include "mpc83xx.h"
 
-static struct of_device_id __initdata mpc834x_itx_ids[] = {
+static const struct of_device_id mpc834x_itx_ids[] __initconst = {
        { .compatible = "fsl,pq2pro-localbus", },
        {},
 };
index 4b4c081df94db168e480e10bff1d427debb1c6bb..eeb80e25214df75acbdb83696fad8e5503aac161 100644 (file)
@@ -321,7 +321,7 @@ static const struct platform_suspend_ops mpc83xx_suspend_ops = {
        .end = mpc83xx_suspend_end,
 };
 
-static struct of_device_id pmc_match[];
+static const struct of_device_id pmc_match[];
 static int pmc_probe(struct platform_device *ofdev)
 {
        const struct of_device_id *match;
@@ -420,7 +420,7 @@ static struct pmc_type pmc_types[] = {
        }
 };
 
-static struct of_device_id pmc_match[] = {
+static const struct of_device_id pmc_match[] = {
        {
                .compatible = "fsl,mpc8313-pmc",
                .data = &pmc_types[0],
index b564b5e23f7c315d9fb88e2d0c7f5374f9aa24e8..4a9ad871a168e6452e365d512ae20a95578ce216 100644 (file)
@@ -14,7 +14,7 @@
 
 #include "mpc85xx.h"
 
-static struct of_device_id __initdata mpc85xx_common_ids[] = {
+static const struct of_device_id mpc85xx_common_ids[] __initconst = {
        { .type = "soc", },
        { .compatible = "soc", },
        { .compatible = "simple-bus", },
index 3daff7c635693a0e716e246a6be037d360aca662..12019f17f297c7e216e53f3fa06aec53601bf2d3 100644 (file)
@@ -59,7 +59,7 @@ static void ppa8548_show_cpuinfo(struct seq_file *m)
        seq_printf(m, "PLL setting\t: 0x%x\n", ((phid1 >> 24) & 0x3f));
 }
 
-static struct of_device_id __initdata of_bus_ids[] = {
+static const struct of_device_id of_bus_ids[] __initconst = {
        { .name = "soc", },
        { .type = "soc", },
        { .compatible = "simple-bus", },
index bb75add670844e3f2e990d0a21e1c48a0ac42c20..8162b0412117a18171cccea8dd7cb61d7b7ef4ac 100644 (file)
@@ -24,7 +24,7 @@
 
 static struct device_node *halt_node;
 
-static struct of_device_id child_match[] = {
+static const struct of_device_id child_match[] = {
        {
                .compatible = "sgy,gpio-halt",
        },
@@ -147,7 +147,7 @@ static int gpio_halt_remove(struct platform_device *pdev)
        return 0;
 }
 
-static struct of_device_id gpio_halt_match[] = {
+static const struct of_device_id gpio_halt_match[] = {
        /* We match on the gpio bus itself and scan the children since they
         * wont be matched against us. We know the bus wont match until it
         * has been registered too. */
index c23f3443880ac96d138c1483120802559a5ee75b..bf17933b20f32c315caf1393d0e666c88cf8876a 100644 (file)
@@ -213,7 +213,7 @@ static long __init mpc86xx_time_init(void)
        return 0;
 }
 
-static __initdata struct of_device_id of_bus_ids[] = {
+static const struct of_device_id of_bus_ids[] __initconst = {
        { .compatible = "simple-bus", },
        { .compatible = "gianfar", },
        { .compatible = "fsl,mpc8641-pcie", },
index 8a6ac20686ea2b0218c89059521788b7377a0ad9..8facf5873866ad94e583cdae37ad42b6573a4d3a 100644 (file)
@@ -200,7 +200,7 @@ static long __init mpc86xx_time_init(void)
        return 0;
 }
 
-static __initdata struct of_device_id of_bus_ids[] = {
+static const struct of_device_id of_bus_ids[] __initconst = {
        { .compatible = "simple-bus", },
        { .compatible = "gianfar", },
        { .compatible = "fsl,mpc8641-pcie", },
index 06c72636f2992d5ac3a632cc28ab05ccb8b6048f..8c9058df5642d13eb30e8e6c66e14523c2dd3d4e 100644 (file)
@@ -190,7 +190,7 @@ static long __init mpc86xx_time_init(void)
        return 0;
 }
 
-static __initdata struct of_device_id of_bus_ids[] = {
+static const struct of_device_id of_bus_ids[] __initconst = {
        { .compatible = "simple-bus", },
        { .compatible = "gianfar", },
        { .compatible = "fsl,mpc8641-pcie", },
index d479d68fbb2bc5017b00b161975533be0c7181cf..55413a547ea8eb0779f28f00835c78fc8b68d75c 100644 (file)
@@ -85,7 +85,7 @@ static void __init mpc8610_suspend_init(void)
 static inline void mpc8610_suspend_init(void) { }
 #endif /* CONFIG_SUSPEND */
 
-static struct of_device_id __initdata mpc8610_ids[] = {
+static const struct of_device_id mpc8610_ids[] __initconst = {
        { .compatible = "fsl,mpc8610-immr", },
        { .compatible = "fsl,mpc8610-guts", },
        { .compatible = "simple-bus", },
index e8bf3fae56060dfa2645701db57839e8092f8e28..07ccb1b0cc7de168cc46eec53c8723a8c43491d1 100644 (file)
@@ -127,7 +127,7 @@ mpc86xx_time_init(void)
        return 0;
 }
 
-static __initdata struct of_device_id of_bus_ids[] = {
+static const struct of_device_id of_bus_ids[] __initconst = {
        { .compatible = "simple-bus", },
        { .compatible = "fsl,srio", },
        { .compatible = "gianfar", },
index b47a8fd0f3d30ad4d2d3e1bfa45a43761bc9e8f1..6810b71d54a795803a6a8cdc6d021af84ebf4b21 100644 (file)
@@ -92,7 +92,7 @@ mpc86xx_time_init(void)
        return 0;
 }
 
-static __initdata struct of_device_id of_bus_ids[] = {
+static const struct of_device_id of_bus_ids[] __initconst = {
        { .compatible = "simple-bus", },
        { .compatible = "gianfar", },
        { .compatible = "fsl,mpc8641-pcie", },
index 82363e98f50e4bc05240df0c147e65a3168b2c65..61cae4c1edb8532f47acd9fa549eda858aebdcc3 100644 (file)
@@ -92,7 +92,7 @@ static int __init adder875_probe(void)
        return of_flat_dt_is_compatible(root, "analogue-and-micro,adder875");
 }
 
-static __initdata struct of_device_id of_bus_ids[] = {
+static const struct of_device_id of_bus_ids[] __initconst = {
        { .compatible = "simple-bus", },
        {},
 };
index e62166681d0811113680965696944c8c23514db3..2bedeb7d5f8f143b97183cb8cb725911b449ca4a 100644 (file)
@@ -147,7 +147,7 @@ static int __init ep88xc_probe(void)
        return of_flat_dt_is_compatible(root, "fsl,ep88xc");
 }
 
-static struct of_device_id __initdata of_bus_ids[] = {
+static const struct of_device_id of_bus_ids[] __initconst = {
        { .name = "soc", },
        { .name = "cpm", },
        { .name = "localbus", },
index 63084640c5c5af872aba11a94979324cec02ccd6..78180c5e73ffc293f9122d147a3981194ff6574e 100644 (file)
@@ -122,7 +122,7 @@ static int __init mpc86xads_probe(void)
        return of_flat_dt_is_compatible(root, "fsl,mpc866ads");
 }
 
-static struct of_device_id __initdata of_bus_ids[] = {
+static const struct of_device_id of_bus_ids[] __initconst = {
        { .name = "soc", },
        { .name = "cpm", },
        { .name = "localbus", },
index 5921dcb498fd2bdf5957563a143f68b9463fe791..4d62bf9dc7894fba257488dbe1ec482be32e2cf5 100644 (file)
@@ -197,7 +197,7 @@ static int __init mpc885ads_probe(void)
        return of_flat_dt_is_compatible(root, "fsl,mpc885ads");
 }
 
-static struct of_device_id __initdata of_bus_ids[] = {
+static const struct of_device_id of_bus_ids[] __initconst = {
        { .name = "soc", },
        { .name = "cpm", },
        { .name = "localbus", },
index dda607807def7d8a782c212ae74dc270858abc5d..bee47a2b23e66b9f487adc565aa3d879c4ae5296 100644 (file)
@@ -124,7 +124,7 @@ static int __init tqm8xx_probe(void)
        return of_flat_dt_is_compatible(node, "tqc,tqm8xx");
 }
 
-static struct of_device_id __initdata of_bus_ids[] = {
+static const struct of_device_id of_bus_ids[] __initconst = {
        { .name = "soc", },
        { .name = "cpm", },
        { .name = "localbus", },
index 173568140a32ec0df09c0269107c1caa7ec035c6..2b98a36ef8fb740ac7b087ff1cb856400af841d3 100644 (file)
@@ -454,7 +454,7 @@ static struct celleb_phb_spec celleb_fake_pci_spec __initdata = {
        .setup = celleb_setup_fake_pci,
 };
 
-static struct of_device_id celleb_phb_match[] __initdata = {
+static const struct of_device_id celleb_phb_match[] __initconst = {
        {
                .name = "pci-pseudo",
                .data = &celleb_fake_pci_spec,
index 1d5a4d8ddad9dd221f110ba3768db00134055bad..34e8ce2976aac3ff3d2ee7ac5500cda0698367d9 100644 (file)
@@ -102,7 +102,7 @@ static void __init celleb_setup_arch_common(void)
 #endif
 }
 
-static struct of_device_id celleb_bus_ids[] __initdata = {
+static const struct of_device_id celleb_bus_ids[] __initconst = {
        { .type = "scc", },
        { .type = "ioif", },    /* old style */
        {},
index a138e14bad2e7292565bf807be59e784e1e77f89..bd4ba5d7d568f3064675e51ea46c389ede739e5a 100644 (file)
@@ -90,7 +90,7 @@ define_machine(gamecube) {
 };
 
 
-static struct of_device_id gamecube_of_bus[] = {
+static const struct of_device_id gamecube_of_bus[] = {
        { .compatible = "nintendo,flipper", },
        { },
 };
index 455e7c08742290a6bfb175dc3f3d730829c5545b..168e1d80b2e5dd58ace20584c265b9c539c3d7b1 100644 (file)
@@ -21,7 +21,7 @@
 
 #include "mpc10x.h"
 
-static __initdata struct of_device_id of_bus_ids[] = {
+static const struct of_device_id of_bus_ids[] __initconst = {
        { .type = "soc", },
        { .compatible = "simple-bus", },
        {},
index 25e3bfb64efbe7d0b9a5e8b0e5ad26d2affd1394..1613303177e64e6b3b60830c90b6be50a56e01a7 100644 (file)
@@ -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", },
        {},
 };
index c458b60d14c4f78064485f209a026438e73f1e9a..d572833ebd00cc3e27b1a7671292335f2f2507b5 100644 (file)
@@ -24,7 +24,7 @@
 #include "mpc10x.h"
 
 
-static __initdata struct of_device_id storcenter_of_bus[] = {
+static const struct of_device_id storcenter_of_bus[] __initconst = {
        { .name = "soc", },
        {},
 };
index 6d8dadf19f0b84e95cd58fbed9bfbdd1101f3126..388e29bab8f61a3fa673efd13ab517383ef6e302 100644 (file)
@@ -235,7 +235,7 @@ define_machine(wii) {
        .machine_shutdown       = wii_shutdown,
 };
 
-static struct of_device_id wii_of_bus[] = {
+static const struct of_device_id wii_of_bus[] = {
        { .compatible = "nintendo,hollywood", },
        { },
 };
index 15adee544638b6c11fcea4f0a8c7d813403496c5..ada33358950dcd582d106c068724c2ddb892cc95 100644 (file)
@@ -290,7 +290,7 @@ static int gpio_mdio_remove(struct platform_device *dev)
        return 0;
 }
 
-static struct of_device_id gpio_mdio_match[] =
+static const struct of_device_id gpio_mdio_match[] =
 {
        {
                .compatible      = "gpio-mdio",
index 8c54de6d8ec426e11e7a84ee7193159176f0b482..d71b2c7e84031ba4c94e41664b365eb14c1e24b5 100644 (file)
@@ -393,7 +393,7 @@ static inline void pasemi_pcmcia_init(void)
 #endif
 
 
-static struct of_device_id pasemi_bus_ids[] = {
+static const struct of_device_id pasemi_bus_ids[] = {
        /* Unfortunately needed for legacy firmwares */
        { .type = "localbus", },
        { .type = "sdc", },
index 47b6b9f81d4305537b7d0e6290e178efb4253f4c..ad56edc39919fb223e21da9a9b75e8a9ba032b4e 100644 (file)
@@ -314,7 +314,7 @@ axon_ram_remove(struct platform_device *device)
        return 0;
 }
 
-static struct of_device_id axon_ram_device_id[] = {
+static const struct of_device_id axon_ram_device_id[] = {
        {
                .type   = "dma-memory"
        },
index afc2dbf37011e67805d8ed1db68c801dca4073f0..90545ad1626ea2e68d1a1dc22baabc5731c0d2c3 100644 (file)
@@ -171,7 +171,7 @@ static int mpc85xx_l2ctlr_of_remove(struct platform_device *dev)
        return 0;
 }
 
-static struct of_device_id mpc85xx_l2ctlr_of_match[] = {
+static const struct of_device_id mpc85xx_l2ctlr_of_match[] = {
        {
                .compatible = "fsl,p2020-l2-cache-controller",
        },
index c2dba7db71ad533bf15b20739646f1369013033f..026bbc3b2c47d75f967d777bc797f446a615438c 100644 (file)
@@ -23,7 +23,7 @@
 
 /* These functions provide the necessary setup for the mv64x60 drivers. */
 
-static struct of_device_id __initdata of_mv64x60_devices[] = {
+static const struct of_device_id of_mv64x60_devices[] __initconst = {
        { .compatible = "marvell,mv64306-devctrl", },
        {}
 };
index 5aaf86c03893446474b538760d6d3fa169ec4e2b..13e67d93a7c111f785df07050c5e991104bb0407 100644 (file)
@@ -101,7 +101,7 @@ static irqreturn_t pmi_irq_handler(int irq, void *dev_id)
 }
 
 
-static struct of_device_id pmi_match[] = {
+static const struct of_device_id pmi_match[] = {
        { .type = "ibm,pmi", .name = "ibm,pmi" },
        { .type = "ibm,pmi" },
        {},
index 83f943a8e0db90ed0cf7a700c70f201861db8062..56f0524e47a6f84f723d26a3bf90a2c688b4d051 100644 (file)
@@ -265,7 +265,7 @@ static void __init xilinx_i8259_setup_cascade(void)
 static inline void xilinx_i8259_setup_cascade(void) { return; }
 #endif /* defined(CONFIG_PPC_I8259) */
 
-static struct of_device_id xilinx_intc_match[] __initconst = {
+static const struct of_device_id xilinx_intc_match[] __initconst = {
        { .compatible = "xlnx,opb-intc-1.00.c", },
        { .compatible = "xlnx,xps-intc-1.00.a", },
        {}
index 1453b0eed2202acf7facca6628db2f09b00ed9bf..fea5667699ed99f33795573254e994bebcb729de 100644 (file)
@@ -27,7 +27,7 @@
 
 #define PCI_HOST_ENABLE_CMD PCI_COMMAND_SERR | PCI_COMMAND_PARITY | PCI_COMMAND_MASTER | PCI_COMMAND_MEMORY
 
-static struct of_device_id xilinx_pci_match[] = {
+static const struct of_device_id xilinx_pci_match[] = {
        { .compatible = "xlnx,plbv46-pci-1.03.a", },
        {}
 };