diff options
author | Fabian Frederick <fabf@skynet.be> | 2015-03-17 14:37:35 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-03-17 15:00:21 -0400 |
commit | fa2b183726df83217dec2b7c0f44317b1045915a (patch) | |
tree | e1f422828375df7db1eb268b9ea915835ac91089 | |
parent | 94e5a2a88affa2ff9f95c8577166d2954a110ea8 (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>
-rw-r--r-- | drivers/net/ethernet/ethoc.c | 2 |
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) | |||
1299 | # define ethoc_resume NULL | 1299 | # define ethoc_resume NULL |
1300 | #endif | 1300 | #endif |
1301 | 1301 | ||
1302 | static struct of_device_id ethoc_match[] = { | 1302 | static const struct of_device_id ethoc_match[] = { |
1303 | { .compatible = "opencores,ethoc", }, | 1303 | { .compatible = "opencores,ethoc", }, |
1304 | {}, | 1304 | {}, |
1305 | }; | 1305 | }; |