summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/ethoc.c
diff options
context:
space:
mode:
authorFabian Frederick <fabf@skynet.be>2015-03-17 19:37:35 +0100
committerDavid S. Miller <davem@davemloft.net>2015-03-17 15:00:21 -0400
commitfa2b183726df83217dec2b7c0f44317b1045915a (patch)
treee1f422828375df7db1eb268b9ea915835ac91089 /drivers/net/ethernet/ethoc.c
parent94e5a2a88affa2ff9f95c8577166d2954a110ea8 (diff)
net: ethoc: 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/ethoc.c')
-rw-r--r--drivers/net/ethernet/ethoc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/ethoc.c b/drivers/net/ethernet/ethoc.c
index f88cfaa359e7..442410cd2ca4 100644
--- a/drivers/net/ethernet/ethoc.c
+++ b/drivers/net/ethernet/ethoc.c
@@ -1299,7 +1299,7 @@ static int ethoc_resume(struct platform_device *pdev)
# define ethoc_resume NULL
#endif
-static struct of_device_id ethoc_match[] = {
+static const struct of_device_id ethoc_match[] = {
{ .compatible = "opencores,ethoc", },
{},
};