diff options
author | Fabian Frederick <fabf@skynet.be> | 2015-03-17 14:37:40 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-03-17 15:00:22 -0400 |
commit | 74847f231c8a429c8c5d382ac2dbb46766561ee0 (patch) | |
tree | 44cdd41067f61e18d243aebf3b44c599f456fe0e /drivers/net/ethernet/xilinx | |
parent | 73c7047464f26c00389b142cb1c35a695ff59777 (diff) |
net: xilinx: constify of_device_id array
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>
Diffstat (limited to 'drivers/net/ethernet/xilinx')
-rw-r--r-- | drivers/net/ethernet/xilinx/ll_temac_main.c | 2 | ||||
-rw-r--r-- | drivers/net/ethernet/xilinx/xilinx_axienet_main.c | 2 | ||||
-rw-r--r-- | drivers/net/ethernet/xilinx/xilinx_emaclite.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/ethernet/xilinx/ll_temac_main.c b/drivers/net/ethernet/xilinx/ll_temac_main.c index dbcbf0c5bcfa..690a4c36b316 100644 --- a/drivers/net/ethernet/xilinx/ll_temac_main.c +++ b/drivers/net/ethernet/xilinx/ll_temac_main.c | |||
@@ -1157,7 +1157,7 @@ static int temac_of_remove(struct platform_device *op) | |||
1157 | return 0; | 1157 | return 0; |
1158 | } | 1158 | } |
1159 | 1159 | ||
1160 | static struct of_device_id temac_of_match[] = { | 1160 | static const struct of_device_id temac_of_match[] = { |
1161 | { .compatible = "xlnx,xps-ll-temac-1.01.b", }, | 1161 | { .compatible = "xlnx,xps-ll-temac-1.01.b", }, |
1162 | { .compatible = "xlnx,xps-ll-temac-2.00.a", }, | 1162 | { .compatible = "xlnx,xps-ll-temac-2.00.a", }, |
1163 | { .compatible = "xlnx,xps-ll-temac-2.02.a", }, | 1163 | { .compatible = "xlnx,xps-ll-temac-2.02.a", }, |
diff --git a/drivers/net/ethernet/xilinx/xilinx_axienet_main.c b/drivers/net/ethernet/xilinx/xilinx_axienet_main.c index a6d2860b712c..28b7e7d9c272 100644 --- a/drivers/net/ethernet/xilinx/xilinx_axienet_main.c +++ b/drivers/net/ethernet/xilinx/xilinx_axienet_main.c | |||
@@ -48,7 +48,7 @@ | |||
48 | #define AXIENET_REGS_N 32 | 48 | #define AXIENET_REGS_N 32 |
49 | 49 | ||
50 | /* Match table for of_platform binding */ | 50 | /* Match table for of_platform binding */ |
51 | static struct of_device_id axienet_of_match[] = { | 51 | static const struct of_device_id axienet_of_match[] = { |
52 | { .compatible = "xlnx,axi-ethernet-1.00.a", }, | 52 | { .compatible = "xlnx,axi-ethernet-1.00.a", }, |
53 | { .compatible = "xlnx,axi-ethernet-1.01.a", }, | 53 | { .compatible = "xlnx,axi-ethernet-1.01.a", }, |
54 | { .compatible = "xlnx,axi-ethernet-2.01.a", }, | 54 | { .compatible = "xlnx,axi-ethernet-2.01.a", }, |
diff --git a/drivers/net/ethernet/xilinx/xilinx_emaclite.c b/drivers/net/ethernet/xilinx/xilinx_emaclite.c index 9d4ce388510a..2111b91f5e49 100644 --- a/drivers/net/ethernet/xilinx/xilinx_emaclite.c +++ b/drivers/net/ethernet/xilinx/xilinx_emaclite.c | |||
@@ -1231,7 +1231,7 @@ static struct net_device_ops xemaclite_netdev_ops = { | |||
1231 | }; | 1231 | }; |
1232 | 1232 | ||
1233 | /* Match table for OF platform binding */ | 1233 | /* Match table for OF platform binding */ |
1234 | static struct of_device_id xemaclite_of_match[] = { | 1234 | static const struct of_device_id xemaclite_of_match[] = { |
1235 | { .compatible = "xlnx,opb-ethernetlite-1.01.a", }, | 1235 | { .compatible = "xlnx,opb-ethernetlite-1.01.a", }, |
1236 | { .compatible = "xlnx,opb-ethernetlite-1.01.b", }, | 1236 | { .compatible = "xlnx,opb-ethernetlite-1.01.b", }, |
1237 | { .compatible = "xlnx,xps-ethernetlite-1.00.a", }, | 1237 | { .compatible = "xlnx,xps-ethernetlite-1.00.a", }, |