diff options
| author | Fabian Frederick <fabf@skynet.be> | 2015-03-17 14:40:27 -0400 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2015-03-17 15:00:23 -0400 |
| commit | d2b75a3f7d3e08c7d8a2fe9cb60d164ba7a2d91a (patch) | |
| tree | 85afecdb84e21c69f25660a69a3378be264423ea | |
| parent | abae1e0718c1026b76011a1bf7f9f28799be9092 (diff) | |
net: via-rhine: 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/via/via-rhine.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/via/via-rhine.c b/drivers/net/ethernet/via/via-rhine.c index 8fb807ea1caa..de2850497c09 100644 --- a/drivers/net/ethernet/via/via-rhine.c +++ b/drivers/net/ethernet/via/via-rhine.c | |||
| @@ -288,7 +288,7 @@ MODULE_DEVICE_TABLE(pci, rhine_pci_tbl); | |||
| 288 | * The .data field is currently only used to store quirks | 288 | * The .data field is currently only used to store quirks |
| 289 | */ | 289 | */ |
| 290 | static u32 vt8500_quirks = rqWOL | rqForceReset | rq6patterns; | 290 | static u32 vt8500_quirks = rqWOL | rqForceReset | rq6patterns; |
| 291 | static struct of_device_id rhine_of_tbl[] = { | 291 | static const struct of_device_id rhine_of_tbl[] = { |
| 292 | { .compatible = "via,vt8500-rhine", .data = &vt8500_quirks }, | 292 | { .compatible = "via,vt8500-rhine", .data = &vt8500_quirks }, |
| 293 | { } /* terminate list */ | 293 | { } /* terminate list */ |
| 294 | }; | 294 | }; |
