]> git.openpandora.org Git - pandora-kernel.git/commitdiff
can: constify of_device_id array
authorFabian Frederick <fabf@skynet.be>
Tue, 17 Mar 2015 18:40:24 +0000 (19:40 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 17 Mar 2015 19:00:23 +0000 (15:00 -0400)
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: David S. Miller <davem@davemloft.net>
drivers/net/can/cc770/cc770_platform.c
drivers/net/can/grcan.c
drivers/net/can/mscan/mpc5xxx_can.c
drivers/net/can/sja1000/sja1000_platform.c
drivers/net/can/xilinx_can.c

index b1e8851d3cc4cae2b35d2d853f48866bad1922cd..866e5e12fdd27c5f2c73436df486540293f85f2e 100644 (file)
@@ -254,7 +254,7 @@ static int cc770_platform_remove(struct platform_device *pdev)
        return 0;
 }
 
-static struct of_device_id cc770_platform_table[] = {
+static const struct of_device_id cc770_platform_table[] = {
        {.compatible = "bosch,cc770"}, /* CC770 from Bosch */
        {.compatible = "intc,82527"},  /* AN82527 from Intel CP */
        {},
index fed1bbd0b0d29ec45fd3ece838c8a093bb46fc9b..e3d7e22a4fa080504544a245d9e21adb80aea036 100644 (file)
@@ -1725,7 +1725,7 @@ static int grcan_remove(struct platform_device *ofdev)
        return 0;
 }
 
-static struct of_device_id grcan_match[] = {
+static const struct of_device_id grcan_match[] = {
        {.name = "GAISLER_GRCAN"},
        {.name = "01_03d"},
        {.name = "GAISLER_GRHCAN"},
Simple merge
Simple merge