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"},
index ad024e60ba8c332e1a42f58fa3b1f1d25a3523d9..c7427bdd3a4bff957aaef3fdb1d2f8ed0ead41cb 100644 (file)
@@ -43,7 +43,7 @@ struct mpc5xxx_can_data {
 };
 
 #ifdef CONFIG_PPC_MPC52xx
-static struct of_device_id mpc52xx_cdm_ids[] = {
+static const struct of_device_id mpc52xx_cdm_ids[] = {
        { .compatible = "fsl,mpc5200-cdm", },
        {}
 };
index 93115250eaf527a0206c2981580ff3c89ffd6473..0552ed46a206c5af03785bb63adbf3c2b0b43f69 100644 (file)
@@ -242,7 +242,7 @@ static int sp_remove(struct platform_device *pdev)
        return 0;
 }
 
-static struct of_device_id sp_of_table[] = {
+static const struct of_device_id sp_of_table[] = {
        {.compatible = "nxp,sja1000"},
        {},
 };
index 6c67643122859f1a37c0eb953d2d5a506f7e3c47..6bddfe062b516467b6cc2be75a53c17c2040b2d7 100644 (file)
@@ -1185,7 +1185,7 @@ static int xcan_remove(struct platform_device *pdev)
 }
 
 /* Match table for OF platform binding */
-static struct of_device_id xcan_of_match[] = {
+static const struct of_device_id xcan_of_match[] = {
        { .compatible = "xlnx,zynq-can-1.0", },
        { .compatible = "xlnx,axi-can-1.00.a", },
        { /* end of list */ },