char: constify of_device_id array
authorFabian Frederick <fabf@skynet.be>
Mon, 16 Mar 2015 19:17:13 +0000 (20:17 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 16 Mar 2015 20:10:28 +0000 (21:10 +0100)
of_device_id is always used as const.
(See driver.of_match_table and open firmware functions)

Signed-off-by: Fabian Frederick <fabf@skynet.be>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/char/hw_random/pasemi-rng.c
drivers/char/hw_random/powernv-rng.c
drivers/char/hw_random/ppc4xx-rng.c
drivers/char/ipmi/ipmi_si_intf.c
drivers/char/xillybus/xillybus_of.c

index 3eb7bdd7f93bc31f39e70e7416b8ae85a46c7590..51cb1d5cc489773072edcaf637091172c55ef1fe 100644 (file)
@@ -133,7 +133,7 @@ static int rng_remove(struct platform_device *dev)
        return 0;
 }
 
-static struct of_device_id rng_match[] = {
+static const struct of_device_id rng_match[] = {
        { .compatible      = "1682m-rng", },
        { .compatible      = "pasemi,pwrficient-rng", },
        { },
index 3f4f63204560f932a5160b8d403baa51dac9b4bf..263a5bb8e605a729a7e68fa056f43d377fd69d41 100644 (file)
@@ -61,7 +61,7 @@ static int powernv_rng_probe(struct platform_device *pdev)
        return 0;
 }
 
-static struct of_device_id powernv_rng_match[] = {
+static const struct of_device_id powernv_rng_match[] = {
        { .compatible   = "ibm,power-rng",},
        {},
 };
index c85d31a5f9e3f57acff8ca95338e15a2f6ab5419..b2cfda0fa93e28535772cd67237ee681885d274f 100644 (file)
@@ -123,7 +123,7 @@ static int ppc4xx_rng_remove(struct platform_device *dev)
        return 0;
 }
 
-static struct of_device_id ppc4xx_rng_match[] = {
+static const struct of_device_id ppc4xx_rng_match[] = {
        { .compatible = "ppc4xx-rng", },
        { .compatible = "amcc,ppc460ex-rng", },
        { .compatible = "amcc,ppc440epx-rng", },
index f6646ed3047e09a3656b089491f0afaa14982af1..e6a6da4ad2f75252440307b082b278e37aec3226 100644 (file)
@@ -2664,7 +2664,7 @@ static struct pci_driver ipmi_pci_driver = {
 };
 #endif /* CONFIG_PCI */
 
-static struct of_device_id ipmi_match[];
+static const struct of_device_id ipmi_match[];
 static int ipmi_probe(struct platform_device *dev)
 {
 #ifdef CONFIG_OF
@@ -2761,7 +2761,7 @@ static int ipmi_remove(struct platform_device *dev)
        return 0;
 }
 
-static struct of_device_id ipmi_match[] =
+static const struct of_device_id ipmi_match[] =
 {
        { .type = "ipmi", .compatible = "ipmi-kcs",
          .data = (void *)(unsigned long) SI_KCS },
index 2002a3a28146985f911b449fb7da72a4cbbec9fd..781865084dc17444d74d39fb87d5aa5c9099988d 100644 (file)
@@ -31,7 +31,7 @@ MODULE_LICENSE("GPL v2");
 static const char xillyname[] = "xillybus_of";
 
 /* Match table for of_platform binding */
-static struct of_device_id xillybus_of_match[] = {
+static const struct of_device_id xillybus_of_match[] = {
        { .compatible = "xillybus,xillybus-1.00.a", },
        { .compatible = "xlnx,xillybus-1.00.a", }, /* Deprecated */
        {}