summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/xilinx/xilinx_emaclite.c
diff options
context:
space:
mode:
authorFabian Frederick <fabf@skynet.be>2015-03-17 19:37:40 +0100
committerDavid S. Miller <davem@davemloft.net>2015-03-17 15:00:22 -0400
commit74847f231c8a429c8c5d382ac2dbb46766561ee0 (patch)
tree44cdd41067f61e18d243aebf3b44c599f456fe0e /drivers/net/ethernet/xilinx/xilinx_emaclite.c
parent73c7047464f26c00389b142cb1c35a695ff59777 (diff)
downloadop-kernel-dev-74847f231c8a429c8c5d382ac2dbb46766561ee0.zip
op-kernel-dev-74847f231c8a429c8c5d382ac2dbb46766561ee0.tar.gz
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/xilinx_emaclite.c')
-rw-r--r--drivers/net/ethernet/xilinx/xilinx_emaclite.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/xilinx/xilinx_emaclite.c b/drivers/net/ethernet/xilinx/xilinx_emaclite.c
index 9d4ce38..2111b91 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 = {
};
/* Match table for OF platform binding */
-static struct of_device_id xemaclite_of_match[] = {
+static const struct of_device_id xemaclite_of_match[] = {
{ .compatible = "xlnx,opb-ethernetlite-1.01.a", },
{ .compatible = "xlnx,opb-ethernetlite-1.01.b", },
{ .compatible = "xlnx,xps-ethernetlite-1.00.a", },
OpenPOWER on IntegriCloud