diff options
Diffstat (limited to 'drivers')
106 files changed, 163 insertions, 178 deletions
diff --git a/drivers/net/3c501.c b/drivers/net/3c501.c index 591e7fb47b9f..1b82bccd8c71 100644 --- a/drivers/net/3c501.c +++ b/drivers/net/3c501.c | |||
@@ -881,7 +881,7 @@ static void netdev_set_msglevel(struct net_device *dev, u32 level) | |||
881 | debug = level; | 881 | debug = level; |
882 | } | 882 | } |
883 | 883 | ||
884 | static struct ethtool_ops netdev_ethtool_ops = { | 884 | static const struct ethtool_ops netdev_ethtool_ops = { |
885 | .get_drvinfo = netdev_get_drvinfo, | 885 | .get_drvinfo = netdev_get_drvinfo, |
886 | .get_msglevel = netdev_get_msglevel, | 886 | .get_msglevel = netdev_get_msglevel, |
887 | .set_msglevel = netdev_set_msglevel, | 887 | .set_msglevel = netdev_set_msglevel, |
diff --git a/drivers/net/3c501.h b/drivers/net/3c501.h index 965474aa1cc6..39d332474750 100644 --- a/drivers/net/3c501.h +++ b/drivers/net/3c501.h | |||
@@ -13,7 +13,7 @@ static void el_reset(struct net_device *dev); | |||
13 | static int el1_close(struct net_device *dev); | 13 | static int el1_close(struct net_device *dev); |
14 | static struct net_device_stats *el1_get_stats(struct net_device *dev); | 14 | static struct net_device_stats *el1_get_stats(struct net_device *dev); |
15 | static void set_multicast_list(struct net_device *dev); | 15 | static void set_multicast_list(struct net_device *dev); |
16 | static struct ethtool_ops netdev_ethtool_ops; | 16 | static const struct ethtool_ops netdev_ethtool_ops; |
17 | 17 | ||
18 | #define EL1_IO_EXTENT 16 | 18 | #define EL1_IO_EXTENT 16 |
19 | 19 | ||
diff --git a/drivers/net/3c503.c b/drivers/net/3c503.c index 64313e3dfcb8..a34b2206132d 100644 --- a/drivers/net/3c503.c +++ b/drivers/net/3c503.c | |||
@@ -79,7 +79,7 @@ static void el2_block_input(struct net_device *dev, int count, struct sk_buff *s | |||
79 | int ring_offset); | 79 | int ring_offset); |
80 | static void el2_get_8390_hdr(struct net_device *dev, struct e8390_pkt_hdr *hdr, | 80 | static void el2_get_8390_hdr(struct net_device *dev, struct e8390_pkt_hdr *hdr, |
81 | int ring_page); | 81 | int ring_page); |
82 | static struct ethtool_ops netdev_ethtool_ops; | 82 | static const struct ethtool_ops netdev_ethtool_ops; |
83 | 83 | ||
84 | 84 | ||
85 | /* This routine probes for a memory-mapped 3c503 board by looking for | 85 | /* This routine probes for a memory-mapped 3c503 board by looking for |
@@ -666,7 +666,7 @@ static void netdev_get_drvinfo(struct net_device *dev, | |||
666 | sprintf(info->bus_info, "ISA 0x%lx", dev->base_addr); | 666 | sprintf(info->bus_info, "ISA 0x%lx", dev->base_addr); |
667 | } | 667 | } |
668 | 668 | ||
669 | static struct ethtool_ops netdev_ethtool_ops = { | 669 | static const struct ethtool_ops netdev_ethtool_ops = { |
670 | .get_drvinfo = netdev_get_drvinfo, | 670 | .get_drvinfo = netdev_get_drvinfo, |
671 | }; | 671 | }; |
672 | 672 | ||
diff --git a/drivers/net/3c505.c b/drivers/net/3c505.c index f3a88efc86d6..ab8230a68bea 100644 --- a/drivers/net/3c505.c +++ b/drivers/net/3c505.c | |||
@@ -1169,7 +1169,7 @@ static void netdev_set_msglevel(struct net_device *dev, u32 level) | |||
1169 | debug = level; | 1169 | debug = level; |
1170 | } | 1170 | } |
1171 | 1171 | ||
1172 | static struct ethtool_ops netdev_ethtool_ops = { | 1172 | static const struct ethtool_ops netdev_ethtool_ops = { |
1173 | .get_drvinfo = netdev_get_drvinfo, | 1173 | .get_drvinfo = netdev_get_drvinfo, |
1174 | .get_msglevel = netdev_get_msglevel, | 1174 | .get_msglevel = netdev_get_msglevel, |
1175 | .set_msglevel = netdev_set_msglevel, | 1175 | .set_msglevel = netdev_set_msglevel, |
diff --git a/drivers/net/3c507.c b/drivers/net/3c507.c index 3a95605e18c5..8205a535c5b7 100644 --- a/drivers/net/3c507.c +++ b/drivers/net/3c507.c | |||
@@ -294,7 +294,7 @@ static void el16_tx_timeout (struct net_device *dev); | |||
294 | 294 | ||
295 | static void hardware_send_packet(struct net_device *dev, void *buf, short length, short pad); | 295 | static void hardware_send_packet(struct net_device *dev, void *buf, short length, short pad); |
296 | static void init_82586_mem(struct net_device *dev); | 296 | static void init_82586_mem(struct net_device *dev); |
297 | static struct ethtool_ops netdev_ethtool_ops; | 297 | static const struct ethtool_ops netdev_ethtool_ops; |
298 | static void init_rx_bufs(struct net_device *); | 298 | static void init_rx_bufs(struct net_device *); |
299 | 299 | ||
300 | static int io = 0x300; | 300 | static int io = 0x300; |
@@ -919,7 +919,7 @@ static void netdev_set_msglevel(struct net_device *dev, u32 level) | |||
919 | debug = level; | 919 | debug = level; |
920 | } | 920 | } |
921 | 921 | ||
922 | static struct ethtool_ops netdev_ethtool_ops = { | 922 | static const struct ethtool_ops netdev_ethtool_ops = { |
923 | .get_drvinfo = netdev_get_drvinfo, | 923 | .get_drvinfo = netdev_get_drvinfo, |
924 | .get_msglevel = netdev_get_msglevel, | 924 | .get_msglevel = netdev_get_msglevel, |
925 | .set_msglevel = netdev_set_msglevel, | 925 | .set_msglevel = netdev_set_msglevel, |
diff --git a/drivers/net/3c509.c b/drivers/net/3c509.c index 48b99beb1e8b..16817306f048 100644 --- a/drivers/net/3c509.c +++ b/drivers/net/3c509.c | |||
@@ -200,7 +200,7 @@ static void set_multicast_list(struct net_device *dev); | |||
200 | static void el3_tx_timeout (struct net_device *dev); | 200 | static void el3_tx_timeout (struct net_device *dev); |
201 | static void el3_down(struct net_device *dev); | 201 | static void el3_down(struct net_device *dev); |
202 | static void el3_up(struct net_device *dev); | 202 | static void el3_up(struct net_device *dev); |
203 | static struct ethtool_ops ethtool_ops; | 203 | static const struct ethtool_ops ethtool_ops; |
204 | #ifdef EL3_SUSPEND | 204 | #ifdef EL3_SUSPEND |
205 | static int el3_suspend(struct device *, pm_message_t); | 205 | static int el3_suspend(struct device *, pm_message_t); |
206 | static int el3_resume(struct device *); | 206 | static int el3_resume(struct device *); |
@@ -1349,7 +1349,7 @@ static void el3_set_msglevel(struct net_device *dev, u32 v) | |||
1349 | el3_debug = v; | 1349 | el3_debug = v; |
1350 | } | 1350 | } |
1351 | 1351 | ||
1352 | static struct ethtool_ops ethtool_ops = { | 1352 | static const struct ethtool_ops ethtool_ops = { |
1353 | .get_drvinfo = el3_get_drvinfo, | 1353 | .get_drvinfo = el3_get_drvinfo, |
1354 | .get_settings = el3_get_settings, | 1354 | .get_settings = el3_get_settings, |
1355 | .set_settings = el3_set_settings, | 1355 | .set_settings = el3_set_settings, |
diff --git a/drivers/net/3c515.c b/drivers/net/3c515.c index bde9f5bd3362..91f2232e6050 100644 --- a/drivers/net/3c515.c +++ b/drivers/net/3c515.c | |||
@@ -379,7 +379,7 @@ static int corkscrew_close(struct net_device *dev); | |||
379 | static void update_stats(int addr, struct net_device *dev); | 379 | static void update_stats(int addr, struct net_device *dev); |
380 | static struct net_device_stats *corkscrew_get_stats(struct net_device *dev); | 380 | static struct net_device_stats *corkscrew_get_stats(struct net_device *dev); |
381 | static void set_rx_mode(struct net_device *dev); | 381 | static void set_rx_mode(struct net_device *dev); |
382 | static struct ethtool_ops netdev_ethtool_ops; | 382 | static const struct ethtool_ops netdev_ethtool_ops; |
383 | 383 | ||
384 | 384 | ||
385 | /* | 385 | /* |
@@ -1561,7 +1561,7 @@ static void netdev_set_msglevel(struct net_device *dev, u32 level) | |||
1561 | corkscrew_debug = level; | 1561 | corkscrew_debug = level; |
1562 | } | 1562 | } |
1563 | 1563 | ||
1564 | static struct ethtool_ops netdev_ethtool_ops = { | 1564 | static const struct ethtool_ops netdev_ethtool_ops = { |
1565 | .get_drvinfo = netdev_get_drvinfo, | 1565 | .get_drvinfo = netdev_get_drvinfo, |
1566 | .get_msglevel = netdev_get_msglevel, | 1566 | .get_msglevel = netdev_get_msglevel, |
1567 | .set_msglevel = netdev_set_msglevel, | 1567 | .set_msglevel = netdev_set_msglevel, |
diff --git a/drivers/net/3c523.c b/drivers/net/3c523.c index 3364eb4aff1e..cf8a0bc3bf34 100644 --- a/drivers/net/3c523.c +++ b/drivers/net/3c523.c | |||
@@ -189,7 +189,7 @@ static void elmc_timeout(struct net_device *dev); | |||
189 | #ifdef ELMC_MULTICAST | 189 | #ifdef ELMC_MULTICAST |
190 | static void set_multicast_list(struct net_device *dev); | 190 | static void set_multicast_list(struct net_device *dev); |
191 | #endif | 191 | #endif |
192 | static struct ethtool_ops netdev_ethtool_ops; | 192 | static const struct ethtool_ops netdev_ethtool_ops; |
193 | 193 | ||
194 | /* helper-functions */ | 194 | /* helper-functions */ |
195 | static int init586(struct net_device *dev); | 195 | static int init586(struct net_device *dev); |
@@ -1259,7 +1259,7 @@ static void netdev_get_drvinfo(struct net_device *dev, | |||
1259 | sprintf(info->bus_info, "MCA 0x%lx", dev->base_addr); | 1259 | sprintf(info->bus_info, "MCA 0x%lx", dev->base_addr); |
1260 | } | 1260 | } |
1261 | 1261 | ||
1262 | static struct ethtool_ops netdev_ethtool_ops = { | 1262 | static const struct ethtool_ops netdev_ethtool_ops = { |
1263 | .get_drvinfo = netdev_get_drvinfo, | 1263 | .get_drvinfo = netdev_get_drvinfo, |
1264 | }; | 1264 | }; |
1265 | 1265 | ||
diff --git a/drivers/net/3c527.c b/drivers/net/3c527.c index 323b6e510108..625e57dc3b4a 100644 --- a/drivers/net/3c527.c +++ b/drivers/net/3c527.c | |||
@@ -222,7 +222,7 @@ static int mc32_close(struct net_device *dev); | |||
222 | static struct net_device_stats *mc32_get_stats(struct net_device *dev); | 222 | static struct net_device_stats *mc32_get_stats(struct net_device *dev); |
223 | static void mc32_set_multicast_list(struct net_device *dev); | 223 | static void mc32_set_multicast_list(struct net_device *dev); |
224 | static void mc32_reset_multicast_list(struct net_device *dev); | 224 | static void mc32_reset_multicast_list(struct net_device *dev); |
225 | static struct ethtool_ops netdev_ethtool_ops; | 225 | static const struct ethtool_ops netdev_ethtool_ops; |
226 | 226 | ||
227 | static void cleanup_card(struct net_device *dev) | 227 | static void cleanup_card(struct net_device *dev) |
228 | { | 228 | { |
@@ -1627,7 +1627,7 @@ static void netdev_set_msglevel(struct net_device *dev, u32 level) | |||
1627 | mc32_debug = level; | 1627 | mc32_debug = level; |
1628 | } | 1628 | } |
1629 | 1629 | ||
1630 | static struct ethtool_ops netdev_ethtool_ops = { | 1630 | static const struct ethtool_ops netdev_ethtool_ops = { |
1631 | .get_drvinfo = netdev_get_drvinfo, | 1631 | .get_drvinfo = netdev_get_drvinfo, |
1632 | .get_msglevel = netdev_get_msglevel, | 1632 | .get_msglevel = netdev_get_msglevel, |
1633 | .set_msglevel = netdev_set_msglevel, | 1633 | .set_msglevel = netdev_set_msglevel, |
diff --git a/drivers/net/3c59x.c b/drivers/net/3c59x.c index 5ca7a563f0ba..e1e53bbd150b 100644 --- a/drivers/net/3c59x.c +++ b/drivers/net/3c59x.c | |||
@@ -729,7 +729,7 @@ static int vortex_ioctl(struct net_device *dev, struct ifreq *rq, int cmd); | |||
729 | #endif | 729 | #endif |
730 | static void vortex_tx_timeout(struct net_device *dev); | 730 | static void vortex_tx_timeout(struct net_device *dev); |
731 | static void acpi_set_WOL(struct net_device *dev); | 731 | static void acpi_set_WOL(struct net_device *dev); |
732 | static struct ethtool_ops vortex_ethtool_ops; | 732 | static const struct ethtool_ops vortex_ethtool_ops; |
733 | static void set_8021q_mode(struct net_device *dev, int enable); | 733 | static void set_8021q_mode(struct net_device *dev, int enable); |
734 | 734 | ||
735 | /* This driver uses 'options' to pass the media type, full-duplex flag, etc. */ | 735 | /* This driver uses 'options' to pass the media type, full-duplex flag, etc. */ |
@@ -2873,7 +2873,7 @@ static void vortex_get_drvinfo(struct net_device *dev, | |||
2873 | } | 2873 | } |
2874 | } | 2874 | } |
2875 | 2875 | ||
2876 | static struct ethtool_ops vortex_ethtool_ops = { | 2876 | static const struct ethtool_ops vortex_ethtool_ops = { |
2877 | .get_drvinfo = vortex_get_drvinfo, | 2877 | .get_drvinfo = vortex_get_drvinfo, |
2878 | .get_strings = vortex_get_strings, | 2878 | .get_strings = vortex_get_strings, |
2879 | .get_msglevel = vortex_get_msglevel, | 2879 | .get_msglevel = vortex_get_msglevel, |
diff --git a/drivers/net/8139cp.c b/drivers/net/8139cp.c index 488241c5bdd8..5ba11fa08147 100644 --- a/drivers/net/8139cp.c +++ b/drivers/net/8139cp.c | |||
@@ -1546,7 +1546,7 @@ static void cp_get_ethtool_stats (struct net_device *dev, | |||
1546 | pci_free_consistent(cp->pdev, sizeof(*nic_stats), nic_stats, dma); | 1546 | pci_free_consistent(cp->pdev, sizeof(*nic_stats), nic_stats, dma); |
1547 | } | 1547 | } |
1548 | 1548 | ||
1549 | static struct ethtool_ops cp_ethtool_ops = { | 1549 | static const struct ethtool_ops cp_ethtool_ops = { |
1550 | .get_drvinfo = cp_get_drvinfo, | 1550 | .get_drvinfo = cp_get_drvinfo, |
1551 | .get_regs_len = cp_get_regs_len, | 1551 | .get_regs_len = cp_get_regs_len, |
1552 | .get_stats_count = cp_get_stats_count, | 1552 | .get_stats_count = cp_get_stats_count, |
diff --git a/drivers/net/8139too.c b/drivers/net/8139too.c index 10301d3daa7d..dbc5c0b1b96c 100644 --- a/drivers/net/8139too.c +++ b/drivers/net/8139too.c | |||
@@ -639,7 +639,7 @@ static void __set_rx_mode (struct net_device *dev); | |||
639 | static void rtl8139_hw_start (struct net_device *dev); | 639 | static void rtl8139_hw_start (struct net_device *dev); |
640 | static void rtl8139_thread (void *_data); | 640 | static void rtl8139_thread (void *_data); |
641 | static void rtl8139_tx_timeout_task(void *_data); | 641 | static void rtl8139_tx_timeout_task(void *_data); |
642 | static struct ethtool_ops rtl8139_ethtool_ops; | 642 | static const struct ethtool_ops rtl8139_ethtool_ops; |
643 | 643 | ||
644 | /* write MMIO register, with flush */ | 644 | /* write MMIO register, with flush */ |
645 | /* Flush avoids rtl8139 bug w/ posted MMIO writes */ | 645 | /* Flush avoids rtl8139 bug w/ posted MMIO writes */ |
@@ -2446,7 +2446,7 @@ static void rtl8139_get_strings(struct net_device *dev, u32 stringset, u8 *data) | |||
2446 | memcpy(data, ethtool_stats_keys, sizeof(ethtool_stats_keys)); | 2446 | memcpy(data, ethtool_stats_keys, sizeof(ethtool_stats_keys)); |
2447 | } | 2447 | } |
2448 | 2448 | ||
2449 | static struct ethtool_ops rtl8139_ethtool_ops = { | 2449 | static const struct ethtool_ops rtl8139_ethtool_ops = { |
2450 | .get_drvinfo = rtl8139_get_drvinfo, | 2450 | .get_drvinfo = rtl8139_get_drvinfo, |
2451 | .get_settings = rtl8139_get_settings, | 2451 | .get_settings = rtl8139_get_settings, |
2452 | .set_settings = rtl8139_set_settings, | 2452 | .set_settings = rtl8139_set_settings, |
diff --git a/drivers/net/acenic.c b/drivers/net/acenic.c index 5c8b9dc5dbf1..0473c6d14b4a 100644 --- a/drivers/net/acenic.c +++ b/drivers/net/acenic.c | |||
@@ -451,7 +451,7 @@ static int ace_get_settings(struct net_device *, struct ethtool_cmd *); | |||
451 | static int ace_set_settings(struct net_device *, struct ethtool_cmd *); | 451 | static int ace_set_settings(struct net_device *, struct ethtool_cmd *); |
452 | static void ace_get_drvinfo(struct net_device *, struct ethtool_drvinfo *); | 452 | static void ace_get_drvinfo(struct net_device *, struct ethtool_drvinfo *); |
453 | 453 | ||
454 | static struct ethtool_ops ace_ethtool_ops = { | 454 | static const struct ethtool_ops ace_ethtool_ops = { |
455 | .get_settings = ace_get_settings, | 455 | .get_settings = ace_get_settings, |
456 | .set_settings = ace_set_settings, | 456 | .set_settings = ace_set_settings, |
457 | .get_drvinfo = ace_get_drvinfo, | 457 | .get_drvinfo = ace_get_drvinfo, |
diff --git a/drivers/net/amd8111e.c b/drivers/net/amd8111e.c index a77df854032c..28855a01ed7b 100644 --- a/drivers/net/amd8111e.c +++ b/drivers/net/amd8111e.c | |||
@@ -1645,7 +1645,7 @@ static int amd8111e_set_wol(struct net_device *dev, struct ethtool_wolinfo *wol_ | |||
1645 | return 0; | 1645 | return 0; |
1646 | } | 1646 | } |
1647 | 1647 | ||
1648 | static struct ethtool_ops ops = { | 1648 | static const struct ethtool_ops ops = { |
1649 | .get_drvinfo = amd8111e_get_drvinfo, | 1649 | .get_drvinfo = amd8111e_get_drvinfo, |
1650 | .get_regs_len = amd8111e_get_regs_len, | 1650 | .get_regs_len = amd8111e_get_regs_len, |
1651 | .get_regs = amd8111e_get_regs, | 1651 | .get_regs = amd8111e_get_regs, |
diff --git a/drivers/net/arm/at91_ether.c b/drivers/net/arm/at91_ether.c index 85493b7b924f..95b28aa01f4f 100644 --- a/drivers/net/arm/at91_ether.c +++ b/drivers/net/arm/at91_ether.c | |||
@@ -648,7 +648,7 @@ static void at91ether_get_drvinfo(struct net_device *dev, struct ethtool_drvinfo | |||
648 | strlcpy(info->bus_info, dev->class_dev.dev->bus_id, sizeof(info->bus_info)); | 648 | strlcpy(info->bus_info, dev->class_dev.dev->bus_id, sizeof(info->bus_info)); |
649 | } | 649 | } |
650 | 650 | ||
651 | static struct ethtool_ops at91ether_ethtool_ops = { | 651 | static const struct ethtool_ops at91ether_ethtool_ops = { |
652 | .get_settings = at91ether_get_settings, | 652 | .get_settings = at91ether_get_settings, |
653 | .set_settings = at91ether_set_settings, | 653 | .set_settings = at91ether_set_settings, |
654 | .get_drvinfo = at91ether_get_drvinfo, | 654 | .get_drvinfo = at91ether_get_drvinfo, |
diff --git a/drivers/net/arm/etherh.c b/drivers/net/arm/etherh.c index d52deb8d2075..4ae98970b282 100644 --- a/drivers/net/arm/etherh.c +++ b/drivers/net/arm/etherh.c | |||
@@ -626,7 +626,7 @@ static int etherh_set_settings(struct net_device *dev, struct ethtool_cmd *cmd) | |||
626 | return 0; | 626 | return 0; |
627 | } | 627 | } |
628 | 628 | ||
629 | static struct ethtool_ops etherh_ethtool_ops = { | 629 | static const struct ethtool_ops etherh_ethtool_ops = { |
630 | .get_settings = etherh_get_settings, | 630 | .get_settings = etherh_get_settings, |
631 | .set_settings = etherh_set_settings, | 631 | .set_settings = etherh_set_settings, |
632 | .get_drvinfo = etherh_get_drvinfo, | 632 | .get_drvinfo = etherh_get_drvinfo, |
diff --git a/drivers/net/au1000_eth.c b/drivers/net/au1000_eth.c index ec493368d784..ac33b1b9cf4a 100644 --- a/drivers/net/au1000_eth.c +++ b/drivers/net/au1000_eth.c | |||
@@ -608,7 +608,7 @@ au1000_get_drvinfo(struct net_device *dev, struct ethtool_drvinfo *info) | |||
608 | info->regdump_len = 0; | 608 | info->regdump_len = 0; |
609 | } | 609 | } |
610 | 610 | ||
611 | static struct ethtool_ops au1000_ethtool_ops = { | 611 | static const struct ethtool_ops au1000_ethtool_ops = { |
612 | .get_settings = au1000_get_settings, | 612 | .get_settings = au1000_get_settings, |
613 | .set_settings = au1000_set_settings, | 613 | .set_settings = au1000_set_settings, |
614 | .get_drvinfo = au1000_get_drvinfo, | 614 | .get_drvinfo = au1000_get_drvinfo, |
diff --git a/drivers/net/b44.c b/drivers/net/b44.c index 17eb2912971d..e891ea2ecc3c 100644 --- a/drivers/net/b44.c +++ b/drivers/net/b44.c | |||
@@ -2012,7 +2012,7 @@ static int b44_set_wol(struct net_device *dev, struct ethtool_wolinfo *wol) | |||
2012 | return 0; | 2012 | return 0; |
2013 | } | 2013 | } |
2014 | 2014 | ||
2015 | static struct ethtool_ops b44_ethtool_ops = { | 2015 | static const struct ethtool_ops b44_ethtool_ops = { |
2016 | .get_drvinfo = b44_get_drvinfo, | 2016 | .get_drvinfo = b44_get_drvinfo, |
2017 | .get_settings = b44_get_settings, | 2017 | .get_settings = b44_get_settings, |
2018 | .set_settings = b44_set_settings, | 2018 | .set_settings = b44_set_settings, |
diff --git a/drivers/net/bnx2.c b/drivers/net/bnx2.c index eae5a55103b0..b158de28d6f9 100644 --- a/drivers/net/bnx2.c +++ b/drivers/net/bnx2.c | |||
@@ -5429,7 +5429,7 @@ bnx2_phys_id(struct net_device *dev, u32 data) | |||
5429 | return 0; | 5429 | return 0; |
5430 | } | 5430 | } |
5431 | 5431 | ||
5432 | static struct ethtool_ops bnx2_ethtool_ops = { | 5432 | static const struct ethtool_ops bnx2_ethtool_ops = { |
5433 | .get_settings = bnx2_get_settings, | 5433 | .get_settings = bnx2_get_settings, |
5434 | .set_settings = bnx2_set_settings, | 5434 | .set_settings = bnx2_set_settings, |
5435 | .get_drvinfo = bnx2_get_drvinfo, | 5435 | .get_drvinfo = bnx2_get_drvinfo, |
diff --git a/drivers/net/bonding/bond_main.c b/drivers/net/bonding/bond_main.c index 8b951238f3a2..850aae21a2fe 100644 --- a/drivers/net/bonding/bond_main.c +++ b/drivers/net/bonding/bond_main.c | |||
@@ -4130,7 +4130,7 @@ static void bond_ethtool_get_drvinfo(struct net_device *bond_dev, | |||
4130 | snprintf(drvinfo->fw_version, 32, "%d", BOND_ABI_VERSION); | 4130 | snprintf(drvinfo->fw_version, 32, "%d", BOND_ABI_VERSION); |
4131 | } | 4131 | } |
4132 | 4132 | ||
4133 | static struct ethtool_ops bond_ethtool_ops = { | 4133 | static const struct ethtool_ops bond_ethtool_ops = { |
4134 | .get_tx_csum = ethtool_op_get_tx_csum, | 4134 | .get_tx_csum = ethtool_op_get_tx_csum, |
4135 | .get_tso = ethtool_op_get_tso, | 4135 | .get_tso = ethtool_op_get_tso, |
4136 | .get_ufo = ethtool_op_get_ufo, | 4136 | .get_ufo = ethtool_op_get_ufo, |
diff --git a/drivers/net/cassini.c b/drivers/net/cassini.c index 7ed376448a68..275057ca3dbc 100644 --- a/drivers/net/cassini.c +++ b/drivers/net/cassini.c | |||
@@ -4812,7 +4812,7 @@ static void cas_get_ethtool_stats(struct net_device *dev, | |||
4812 | BUG_ON(i != CAS_NUM_STAT_KEYS); | 4812 | BUG_ON(i != CAS_NUM_STAT_KEYS); |
4813 | } | 4813 | } |
4814 | 4814 | ||
4815 | static struct ethtool_ops cas_ethtool_ops = { | 4815 | static const struct ethtool_ops cas_ethtool_ops = { |
4816 | .get_drvinfo = cas_get_drvinfo, | 4816 | .get_drvinfo = cas_get_drvinfo, |
4817 | .get_settings = cas_get_settings, | 4817 | .get_settings = cas_get_settings, |
4818 | .set_settings = cas_set_settings, | 4818 | .set_settings = cas_set_settings, |
diff --git a/drivers/net/chelsio/cxgb2.c b/drivers/net/chelsio/cxgb2.c index b6de184e4699..5f1b06753462 100644 --- a/drivers/net/chelsio/cxgb2.c +++ b/drivers/net/chelsio/cxgb2.c | |||
@@ -779,7 +779,7 @@ static int get_eeprom(struct net_device *dev, struct ethtool_eeprom *e, | |||
779 | return 0; | 779 | return 0; |
780 | } | 780 | } |
781 | 781 | ||
782 | static struct ethtool_ops t1_ethtool_ops = { | 782 | static const struct ethtool_ops t1_ethtool_ops = { |
783 | .get_settings = get_settings, | 783 | .get_settings = get_settings, |
784 | .set_settings = set_settings, | 784 | .set_settings = set_settings, |
785 | .get_drvinfo = get_drvinfo, | 785 | .get_drvinfo = get_drvinfo, |
diff --git a/drivers/net/cris/eth_v10.c b/drivers/net/cris/eth_v10.c index 0eb1f8787ed7..f1501b6f247e 100644 --- a/drivers/net/cris/eth_v10.c +++ b/drivers/net/cris/eth_v10.c | |||
@@ -434,7 +434,7 @@ static void e100_reset_transceiver(struct net_device* net); | |||
434 | static void e100_clear_network_leds(unsigned long dummy); | 434 | static void e100_clear_network_leds(unsigned long dummy); |
435 | static void e100_set_network_leds(int active); | 435 | static void e100_set_network_leds(int active); |
436 | 436 | ||
437 | static struct ethtool_ops e100_ethtool_ops; | 437 | static const struct ethtool_ops e100_ethtool_ops; |
438 | 438 | ||
439 | static void broadcom_check_speed(struct net_device* dev); | 439 | static void broadcom_check_speed(struct net_device* dev); |
440 | static void broadcom_check_duplex(struct net_device* dev); | 440 | static void broadcom_check_duplex(struct net_device* dev); |
@@ -1552,7 +1552,7 @@ static int e100_nway_reset(struct net_device *dev) | |||
1552 | return 0; | 1552 | return 0; |
1553 | } | 1553 | } |
1554 | 1554 | ||
1555 | static struct ethtool_ops e100_ethtool_ops = { | 1555 | static const struct ethtool_ops e100_ethtool_ops = { |
1556 | .get_settings = e100_get_settings, | 1556 | .get_settings = e100_get_settings, |
1557 | .set_settings = e100_set_settings, | 1557 | .set_settings = e100_set_settings, |
1558 | .get_drvinfo = e100_get_drvinfo, | 1558 | .get_drvinfo = e100_get_drvinfo, |
diff --git a/drivers/net/dl2k.c b/drivers/net/dl2k.c index 5c520f6f66ef..c5c80da239de 100644 --- a/drivers/net/dl2k.c +++ b/drivers/net/dl2k.c | |||
@@ -83,7 +83,7 @@ static int mii_read (struct net_device *dev, int phy_addr, int reg_num); | |||
83 | static int mii_write (struct net_device *dev, int phy_addr, int reg_num, | 83 | static int mii_write (struct net_device *dev, int phy_addr, int reg_num, |
84 | u16 data); | 84 | u16 data); |
85 | 85 | ||
86 | static struct ethtool_ops ethtool_ops; | 86 | static const struct ethtool_ops ethtool_ops; |
87 | 87 | ||
88 | static int __devinit | 88 | static int __devinit |
89 | rio_probe1 (struct pci_dev *pdev, const struct pci_device_id *ent) | 89 | rio_probe1 (struct pci_dev *pdev, const struct pci_device_id *ent) |
@@ -1261,7 +1261,7 @@ static u32 rio_get_link(struct net_device *dev) | |||
1261 | return np->link_status; | 1261 | return np->link_status; |
1262 | } | 1262 | } |
1263 | 1263 | ||
1264 | static struct ethtool_ops ethtool_ops = { | 1264 | static const struct ethtool_ops ethtool_ops = { |
1265 | .get_drvinfo = rio_get_drvinfo, | 1265 | .get_drvinfo = rio_get_drvinfo, |
1266 | .get_settings = rio_get_settings, | 1266 | .get_settings = rio_get_settings, |
1267 | .set_settings = rio_set_settings, | 1267 | .set_settings = rio_set_settings, |
diff --git a/drivers/net/e100.c b/drivers/net/e100.c index 47d970896a5c..dc5e38aefca6 100644 --- a/drivers/net/e100.c +++ b/drivers/net/e100.c | |||
@@ -2477,7 +2477,7 @@ static void e100_get_strings(struct net_device *netdev, u32 stringset, u8 *data) | |||
2477 | } | 2477 | } |
2478 | } | 2478 | } |
2479 | 2479 | ||
2480 | static struct ethtool_ops e100_ethtool_ops = { | 2480 | static const struct ethtool_ops e100_ethtool_ops = { |
2481 | .get_settings = e100_get_settings, | 2481 | .get_settings = e100_get_settings, |
2482 | .set_settings = e100_set_settings, | 2482 | .set_settings = e100_set_settings, |
2483 | .get_drvinfo = e100_get_drvinfo, | 2483 | .get_drvinfo = e100_get_drvinfo, |
diff --git a/drivers/net/e1000/e1000_ethtool.c b/drivers/net/e1000/e1000_ethtool.c index 3fccffdb27b5..0759bf0dcce6 100644 --- a/drivers/net/e1000/e1000_ethtool.c +++ b/drivers/net/e1000/e1000_ethtool.c | |||
@@ -1922,7 +1922,7 @@ e1000_get_strings(struct net_device *netdev, uint32_t stringset, uint8_t *data) | |||
1922 | } | 1922 | } |
1923 | } | 1923 | } |
1924 | 1924 | ||
1925 | static struct ethtool_ops e1000_ethtool_ops = { | 1925 | static const struct ethtool_ops e1000_ethtool_ops = { |
1926 | .get_settings = e1000_get_settings, | 1926 | .get_settings = e1000_get_settings, |
1927 | .set_settings = e1000_set_settings, | 1927 | .set_settings = e1000_set_settings, |
1928 | .get_drvinfo = e1000_get_drvinfo, | 1928 | .get_drvinfo = e1000_get_drvinfo, |
diff --git a/drivers/net/eepro.c b/drivers/net/eepro.c index bf9efa75390f..09ff9b9418f4 100644 --- a/drivers/net/eepro.c +++ b/drivers/net/eepro.c | |||
@@ -743,7 +743,7 @@ static void __init eepro_print_info (struct net_device *dev) | |||
743 | printEEPROMInfo(dev); | 743 | printEEPROMInfo(dev); |
744 | } | 744 | } |
745 | 745 | ||
746 | static struct ethtool_ops eepro_ethtool_ops; | 746 | static const struct ethtool_ops eepro_ethtool_ops; |
747 | 747 | ||
748 | /* This is the real probe routine. Linux has a history of friendly device | 748 | /* This is the real probe routine. Linux has a history of friendly device |
749 | probes on the ISA bus. A good device probe avoids doing writes, and | 749 | probes on the ISA bus. A good device probe avoids doing writes, and |
@@ -1771,7 +1771,7 @@ static void eepro_ethtool_get_drvinfo(struct net_device *dev, | |||
1771 | sprintf(drvinfo->bus_info, "ISA 0x%lx", dev->base_addr); | 1771 | sprintf(drvinfo->bus_info, "ISA 0x%lx", dev->base_addr); |
1772 | } | 1772 | } |
1773 | 1773 | ||
1774 | static struct ethtool_ops eepro_ethtool_ops = { | 1774 | static const struct ethtool_ops eepro_ethtool_ops = { |
1775 | .get_settings = eepro_ethtool_get_settings, | 1775 | .get_settings = eepro_ethtool_get_settings, |
1776 | .get_drvinfo = eepro_ethtool_get_drvinfo, | 1776 | .get_drvinfo = eepro_ethtool_get_drvinfo, |
1777 | }; | 1777 | }; |
diff --git a/drivers/net/eepro100.c b/drivers/net/eepro100.c index 4ee87903c9cf..499e93b31f54 100644 --- a/drivers/net/eepro100.c +++ b/drivers/net/eepro100.c | |||
@@ -494,7 +494,7 @@ static struct net_device_stats *speedo_get_stats(struct net_device *dev); | |||
494 | static int speedo_ioctl(struct net_device *dev, struct ifreq *rq, int cmd); | 494 | static int speedo_ioctl(struct net_device *dev, struct ifreq *rq, int cmd); |
495 | static void set_rx_mode(struct net_device *dev); | 495 | static void set_rx_mode(struct net_device *dev); |
496 | static void speedo_show_state(struct net_device *dev); | 496 | static void speedo_show_state(struct net_device *dev); |
497 | static struct ethtool_ops ethtool_ops; | 497 | static const struct ethtool_ops ethtool_ops; |
498 | 498 | ||
499 | 499 | ||
500 | 500 | ||
@@ -2015,7 +2015,7 @@ static void speedo_set_msglevel(struct net_device *dev, u32 v) | |||
2015 | sp->msg_enable = v; | 2015 | sp->msg_enable = v; |
2016 | } | 2016 | } |
2017 | 2017 | ||
2018 | static struct ethtool_ops ethtool_ops = { | 2018 | static const struct ethtool_ops ethtool_ops = { |
2019 | .get_drvinfo = speedo_get_drvinfo, | 2019 | .get_drvinfo = speedo_get_drvinfo, |
2020 | .get_settings = speedo_get_settings, | 2020 | .get_settings = speedo_get_settings, |
2021 | .set_settings = speedo_set_settings, | 2021 | .set_settings = speedo_set_settings, |
diff --git a/drivers/net/ehea/ehea_ethtool.c b/drivers/net/ehea/ehea_ethtool.c index 6906af6277c8..82eb2fb8c75e 100644 --- a/drivers/net/ehea/ehea_ethtool.c +++ b/drivers/net/ehea/ehea_ethtool.c | |||
@@ -270,7 +270,7 @@ static void ehea_get_ethtool_stats(struct net_device *dev, | |||
270 | kfree(cb6); | 270 | kfree(cb6); |
271 | } | 271 | } |
272 | 272 | ||
273 | struct ethtool_ops ehea_ethtool_ops = { | 273 | const struct ethtool_ops ehea_ethtool_ops = { |
274 | .get_settings = ehea_get_settings, | 274 | .get_settings = ehea_get_settings, |
275 | .get_drvinfo = ehea_get_drvinfo, | 275 | .get_drvinfo = ehea_get_drvinfo, |
276 | .get_msglevel = ehea_get_msglevel, | 276 | .get_msglevel = ehea_get_msglevel, |
diff --git a/drivers/net/epic100.c b/drivers/net/epic100.c index b885b2029b49..ba2565ee0439 100644 --- a/drivers/net/epic100.c +++ b/drivers/net/epic100.c | |||
@@ -299,7 +299,7 @@ static int epic_rx(struct net_device *dev, int budget); | |||
299 | static int epic_poll(struct net_device *dev, int *budget); | 299 | static int epic_poll(struct net_device *dev, int *budget); |
300 | static irqreturn_t epic_interrupt(int irq, void *dev_instance, struct pt_regs *regs); | 300 | static irqreturn_t epic_interrupt(int irq, void *dev_instance, struct pt_regs *regs); |
301 | static int netdev_ioctl(struct net_device *dev, struct ifreq *rq, int cmd); | 301 | static int netdev_ioctl(struct net_device *dev, struct ifreq *rq, int cmd); |
302 | static struct ethtool_ops netdev_ethtool_ops; | 302 | static const struct ethtool_ops netdev_ethtool_ops; |
303 | static int epic_close(struct net_device *dev); | 303 | static int epic_close(struct net_device *dev); |
304 | static struct net_device_stats *epic_get_stats(struct net_device *dev); | 304 | static struct net_device_stats *epic_get_stats(struct net_device *dev); |
305 | static void set_rx_mode(struct net_device *dev); | 305 | static void set_rx_mode(struct net_device *dev); |
@@ -1492,7 +1492,7 @@ static void ethtool_complete(struct net_device *dev) | |||
1492 | } | 1492 | } |
1493 | } | 1493 | } |
1494 | 1494 | ||
1495 | static struct ethtool_ops netdev_ethtool_ops = { | 1495 | static const struct ethtool_ops netdev_ethtool_ops = { |
1496 | .get_drvinfo = netdev_get_drvinfo, | 1496 | .get_drvinfo = netdev_get_drvinfo, |
1497 | .get_settings = netdev_get_settings, | 1497 | .get_settings = netdev_get_settings, |
1498 | .set_settings = netdev_set_settings, | 1498 | .set_settings = netdev_set_settings, |
diff --git a/drivers/net/ewrk3.c b/drivers/net/ewrk3.c index 78a1c425a9ab..75a43f7c70cf 100644 --- a/drivers/net/ewrk3.c +++ b/drivers/net/ewrk3.c | |||
@@ -305,8 +305,8 @@ static int ewrk3_close(struct net_device *dev); | |||
305 | static struct net_device_stats *ewrk3_get_stats(struct net_device *dev); | 305 | static struct net_device_stats *ewrk3_get_stats(struct net_device *dev); |
306 | static void set_multicast_list(struct net_device *dev); | 306 | static void set_multicast_list(struct net_device *dev); |
307 | static int ewrk3_ioctl(struct net_device *dev, struct ifreq *rq, int cmd); | 307 | static int ewrk3_ioctl(struct net_device *dev, struct ifreq *rq, int cmd); |
308 | static struct ethtool_ops ethtool_ops_203; | 308 | static const struct ethtool_ops ethtool_ops_203; |
309 | static struct ethtool_ops ethtool_ops; | 309 | static const struct ethtool_ops ethtool_ops; |
310 | 310 | ||
311 | /* | 311 | /* |
312 | ** Private functions | 312 | ** Private functions |
@@ -1666,14 +1666,14 @@ static int ewrk3_phys_id(struct net_device *dev, u32 data) | |||
1666 | return signal_pending(current) ? -ERESTARTSYS : 0; | 1666 | return signal_pending(current) ? -ERESTARTSYS : 0; |
1667 | } | 1667 | } |
1668 | 1668 | ||
1669 | static struct ethtool_ops ethtool_ops_203 = { | 1669 | static const struct ethtool_ops ethtool_ops_203 = { |
1670 | .get_drvinfo = ewrk3_get_drvinfo, | 1670 | .get_drvinfo = ewrk3_get_drvinfo, |
1671 | .get_settings = ewrk3_get_settings, | 1671 | .get_settings = ewrk3_get_settings, |
1672 | .set_settings = ewrk3_set_settings, | 1672 | .set_settings = ewrk3_set_settings, |
1673 | .phys_id = ewrk3_phys_id, | 1673 | .phys_id = ewrk3_phys_id, |
1674 | }; | 1674 | }; |
1675 | 1675 | ||
1676 | static struct ethtool_ops ethtool_ops = { | 1676 | static const struct ethtool_ops ethtool_ops = { |
1677 | .get_drvinfo = ewrk3_get_drvinfo, | 1677 | .get_drvinfo = ewrk3_get_drvinfo, |
1678 | .get_settings = ewrk3_get_settings, | 1678 | .get_settings = ewrk3_get_settings, |
1679 | .set_settings = ewrk3_set_settings, | 1679 | .set_settings = ewrk3_set_settings, |
diff --git a/drivers/net/fealnx.c b/drivers/net/fealnx.c index b7f471651df1..191bd429076a 100644 --- a/drivers/net/fealnx.c +++ b/drivers/net/fealnx.c | |||
@@ -440,7 +440,7 @@ static void set_rx_mode(struct net_device *dev); | |||
440 | static void __set_rx_mode(struct net_device *dev); | 440 | static void __set_rx_mode(struct net_device *dev); |
441 | static struct net_device_stats *get_stats(struct net_device *dev); | 441 | static struct net_device_stats *get_stats(struct net_device *dev); |
442 | static int mii_ioctl(struct net_device *dev, struct ifreq *rq, int cmd); | 442 | static int mii_ioctl(struct net_device *dev, struct ifreq *rq, int cmd); |
443 | static struct ethtool_ops netdev_ethtool_ops; | 443 | static const struct ethtool_ops netdev_ethtool_ops; |
444 | static int netdev_close(struct net_device *dev); | 444 | static int netdev_close(struct net_device *dev); |
445 | static void reset_rx_descriptors(struct net_device *dev); | 445 | static void reset_rx_descriptors(struct net_device *dev); |
446 | static void reset_tx_descriptors(struct net_device *dev); | 446 | static void reset_tx_descriptors(struct net_device *dev); |
@@ -1885,7 +1885,7 @@ static void netdev_set_msglevel(struct net_device *dev, u32 value) | |||
1885 | debug = value; | 1885 | debug = value; |
1886 | } | 1886 | } |
1887 | 1887 | ||
1888 | static struct ethtool_ops netdev_ethtool_ops = { | 1888 | static const struct ethtool_ops netdev_ethtool_ops = { |
1889 | .get_drvinfo = netdev_get_drvinfo, | 1889 | .get_drvinfo = netdev_get_drvinfo, |
1890 | .get_settings = netdev_get_settings, | 1890 | .get_settings = netdev_get_settings, |
1891 | .set_settings = netdev_set_settings, | 1891 | .set_settings = netdev_set_settings, |
diff --git a/drivers/net/fec_8xx/fec_main.c b/drivers/net/fec_8xx/fec_main.c index 282b1452c39a..22ac2df1aeb0 100644 --- a/drivers/net/fec_8xx/fec_main.c +++ b/drivers/net/fec_8xx/fec_main.c | |||
@@ -1034,20 +1034,20 @@ static void fec_set_msglevel(struct net_device *dev, __u32 value) | |||
1034 | fep->msg_enable = value; | 1034 | fep->msg_enable = value; |
1035 | } | 1035 | } |
1036 | 1036 | ||
1037 | static struct ethtool_ops fec_ethtool_ops = { | 1037 | static const struct ethtool_ops fec_ethtool_ops = { |
1038 | .get_drvinfo = fec_get_drvinfo, | 1038 | .get_drvinfo = fec_get_drvinfo, |
1039 | .get_regs_len = fec_get_regs_len, | 1039 | .get_regs_len = fec_get_regs_len, |
1040 | .get_settings = fec_get_settings, | 1040 | .get_settings = fec_get_settings, |
1041 | .set_settings = fec_set_settings, | 1041 | .set_settings = fec_set_settings, |
1042 | .nway_reset = fec_nway_reset, | 1042 | .nway_reset = fec_nway_reset, |
1043 | .get_link = ethtool_op_get_link, | 1043 | .get_link = ethtool_op_get_link, |
1044 | .get_msglevel = fec_get_msglevel, | 1044 | .get_msglevel = fec_get_msglevel, |
1045 | .set_msglevel = fec_set_msglevel, | 1045 | .set_msglevel = fec_set_msglevel, |
1046 | .get_tx_csum = ethtool_op_get_tx_csum, | 1046 | .get_tx_csum = ethtool_op_get_tx_csum, |
1047 | .set_tx_csum = ethtool_op_set_tx_csum, /* local! */ | 1047 | .set_tx_csum = ethtool_op_set_tx_csum, /* local! */ |
1048 | .get_sg = ethtool_op_get_sg, | 1048 | .get_sg = ethtool_op_get_sg, |
1049 | .set_sg = ethtool_op_set_sg, | 1049 | .set_sg = ethtool_op_set_sg, |
1050 | .get_regs = fec_get_regs, | 1050 | .get_regs = fec_get_regs, |
1051 | }; | 1051 | }; |
1052 | 1052 | ||
1053 | static int fec_ioctl(struct net_device *dev, struct ifreq *rq, int cmd) | 1053 | static int fec_ioctl(struct net_device *dev, struct ifreq *rq, int cmd) |
diff --git a/drivers/net/forcedeth.c b/drivers/net/forcedeth.c index 59f9a515c07c..b8df5ca4e6aa 100644 --- a/drivers/net/forcedeth.c +++ b/drivers/net/forcedeth.c | |||
@@ -3962,7 +3962,7 @@ static void nv_get_strings(struct net_device *dev, u32 stringset, u8 *buffer) | |||
3962 | } | 3962 | } |
3963 | } | 3963 | } |
3964 | 3964 | ||
3965 | static struct ethtool_ops ops = { | 3965 | static const struct ethtool_ops ops = { |
3966 | .get_drvinfo = nv_get_drvinfo, | 3966 | .get_drvinfo = nv_get_drvinfo, |
3967 | .get_link = ethtool_op_get_link, | 3967 | .get_link = ethtool_op_get_link, |
3968 | .get_wol = nv_get_wol, | 3968 | .get_wol = nv_get_wol, |
diff --git a/drivers/net/fs_enet/fs_enet-main.c b/drivers/net/fs_enet/fs_enet-main.c index df62506a1787..34412bc7c4b6 100644 --- a/drivers/net/fs_enet/fs_enet-main.c +++ b/drivers/net/fs_enet/fs_enet-main.c | |||
@@ -908,7 +908,7 @@ static void fs_set_msglevel(struct net_device *dev, u32 value) | |||
908 | fep->msg_enable = value; | 908 | fep->msg_enable = value; |
909 | } | 909 | } |
910 | 910 | ||
911 | static struct ethtool_ops fs_ethtool_ops = { | 911 | static const struct ethtool_ops fs_ethtool_ops = { |
912 | .get_drvinfo = fs_get_drvinfo, | 912 | .get_drvinfo = fs_get_drvinfo, |
913 | .get_regs_len = fs_get_regs_len, | 913 | .get_regs_len = fs_get_regs_len, |
914 | .get_settings = fs_get_settings, | 914 | .get_settings = fs_get_settings, |
diff --git a/drivers/net/gianfar.c b/drivers/net/gianfar.c index bf3aa275ef4a..4788a41da1c0 100644 --- a/drivers/net/gianfar.c +++ b/drivers/net/gianfar.c | |||
@@ -143,7 +143,7 @@ void gfar_start(struct net_device *dev); | |||
143 | static void gfar_clear_exact_match(struct net_device *dev); | 143 | static void gfar_clear_exact_match(struct net_device *dev); |
144 | static void gfar_set_mac_for_addr(struct net_device *dev, int num, u8 *addr); | 144 | static void gfar_set_mac_for_addr(struct net_device *dev, int num, u8 *addr); |
145 | 145 | ||
146 | extern struct ethtool_ops gfar_ethtool_ops; | 146 | extern const struct ethtool_ops gfar_ethtool_ops; |
147 | 147 | ||
148 | MODULE_AUTHOR("Freescale Semiconductor, Inc"); | 148 | MODULE_AUTHOR("Freescale Semiconductor, Inc"); |
149 | MODULE_DESCRIPTION("Gianfar Ethernet Driver"); | 149 | MODULE_DESCRIPTION("Gianfar Ethernet Driver"); |
diff --git a/drivers/net/gianfar.h b/drivers/net/gianfar.h index f87bbc408dae..c35d47c40c39 100644 --- a/drivers/net/gianfar.h +++ b/drivers/net/gianfar.h | |||
@@ -754,8 +754,6 @@ static inline void gfar_write(volatile unsigned __iomem *addr, u32 val) | |||
754 | out_be32(addr, val); | 754 | out_be32(addr, val); |
755 | } | 755 | } |
756 | 756 | ||
757 | extern struct ethtool_ops *gfar_op_array[]; | ||
758 | |||
759 | extern irqreturn_t gfar_receive(int irq, void *dev_id, struct pt_regs *regs); | 757 | extern irqreturn_t gfar_receive(int irq, void *dev_id, struct pt_regs *regs); |
760 | extern int startup_gfar(struct net_device *dev); | 758 | extern int startup_gfar(struct net_device *dev); |
761 | extern void stop_gfar(struct net_device *dev); | 759 | extern void stop_gfar(struct net_device *dev); |
diff --git a/drivers/net/gianfar_ethtool.c b/drivers/net/gianfar_ethtool.c index de8da82cb7ee..6d71bea5e900 100644 --- a/drivers/net/gianfar_ethtool.c +++ b/drivers/net/gianfar_ethtool.c | |||
@@ -567,7 +567,7 @@ static void gfar_set_msglevel(struct net_device *dev, uint32_t data) | |||
567 | } | 567 | } |
568 | 568 | ||
569 | 569 | ||
570 | struct ethtool_ops gfar_ethtool_ops = { | 570 | const struct ethtool_ops gfar_ethtool_ops = { |
571 | .get_settings = gfar_gsettings, | 571 | .get_settings = gfar_gsettings, |
572 | .set_settings = gfar_ssettings, | 572 | .set_settings = gfar_ssettings, |
573 | .get_drvinfo = gfar_gdrvinfo, | 573 | .get_drvinfo = gfar_gdrvinfo, |
diff --git a/drivers/net/hamachi.c b/drivers/net/hamachi.c index a860c81e4d87..b59bab9e9792 100644 --- a/drivers/net/hamachi.c +++ b/drivers/net/hamachi.c | |||
@@ -563,8 +563,8 @@ static void hamachi_error(struct net_device *dev, int intr_status); | |||
563 | static int hamachi_close(struct net_device *dev); | 563 | static int hamachi_close(struct net_device *dev); |
564 | static struct net_device_stats *hamachi_get_stats(struct net_device *dev); | 564 | static struct net_device_stats *hamachi_get_stats(struct net_device *dev); |
565 | static void set_rx_mode(struct net_device *dev); | 565 | static void set_rx_mode(struct net_device *dev); |
566 | static struct ethtool_ops ethtool_ops; | 566 | static const struct ethtool_ops ethtool_ops; |
567 | static struct ethtool_ops ethtool_ops_no_mii; | 567 | static const struct ethtool_ops ethtool_ops_no_mii; |
568 | 568 | ||
569 | static int __devinit hamachi_init_one (struct pci_dev *pdev, | 569 | static int __devinit hamachi_init_one (struct pci_dev *pdev, |
570 | const struct pci_device_id *ent) | 570 | const struct pci_device_id *ent) |
@@ -1919,7 +1919,7 @@ static u32 hamachi_get_link(struct net_device *dev) | |||
1919 | return mii_link_ok(&np->mii_if); | 1919 | return mii_link_ok(&np->mii_if); |
1920 | } | 1920 | } |
1921 | 1921 | ||
1922 | static struct ethtool_ops ethtool_ops = { | 1922 | static const struct ethtool_ops ethtool_ops = { |
1923 | .begin = check_if_running, | 1923 | .begin = check_if_running, |
1924 | .get_drvinfo = hamachi_get_drvinfo, | 1924 | .get_drvinfo = hamachi_get_drvinfo, |
1925 | .get_settings = hamachi_get_settings, | 1925 | .get_settings = hamachi_get_settings, |
@@ -1928,7 +1928,7 @@ static struct ethtool_ops ethtool_ops = { | |||
1928 | .get_link = hamachi_get_link, | 1928 | .get_link = hamachi_get_link, |
1929 | }; | 1929 | }; |
1930 | 1930 | ||
1931 | static struct ethtool_ops ethtool_ops_no_mii = { | 1931 | static const struct ethtool_ops ethtool_ops_no_mii = { |
1932 | .begin = check_if_running, | 1932 | .begin = check_if_running, |
1933 | .get_drvinfo = hamachi_get_drvinfo, | 1933 | .get_drvinfo = hamachi_get_drvinfo, |
1934 | }; | 1934 | }; |
diff --git a/drivers/net/ibm_emac/ibm_emac_core.c b/drivers/net/ibm_emac/ibm_emac_core.c index 82468e2dc799..944eea66e790 100644 --- a/drivers/net/ibm_emac/ibm_emac_core.c +++ b/drivers/net/ibm_emac/ibm_emac_core.c | |||
@@ -1883,7 +1883,7 @@ static void emac_ethtool_get_drvinfo(struct net_device *ndev, | |||
1883 | info->regdump_len = emac_ethtool_get_regs_len(ndev); | 1883 | info->regdump_len = emac_ethtool_get_regs_len(ndev); |
1884 | } | 1884 | } |
1885 | 1885 | ||
1886 | static struct ethtool_ops emac_ethtool_ops = { | 1886 | static const struct ethtool_ops emac_ethtool_ops = { |
1887 | .get_settings = emac_ethtool_get_settings, | 1887 | .get_settings = emac_ethtool_get_settings, |
1888 | .set_settings = emac_ethtool_set_settings, | 1888 | .set_settings = emac_ethtool_set_settings, |
1889 | .get_drvinfo = emac_ethtool_get_drvinfo, | 1889 | .get_drvinfo = emac_ethtool_get_drvinfo, |
diff --git a/drivers/net/ibmveth.c b/drivers/net/ibmveth.c index 0464e78f733a..48e68f5d1651 100644 --- a/drivers/net/ibmveth.c +++ b/drivers/net/ibmveth.c | |||
@@ -606,7 +606,7 @@ static u32 netdev_get_link(struct net_device *dev) { | |||
606 | return 1; | 606 | return 1; |
607 | } | 607 | } |
608 | 608 | ||
609 | static struct ethtool_ops netdev_ethtool_ops = { | 609 | static const struct ethtool_ops netdev_ethtool_ops = { |
610 | .get_drvinfo = netdev_get_drvinfo, | 610 | .get_drvinfo = netdev_get_drvinfo, |
611 | .get_settings = netdev_get_settings, | 611 | .get_settings = netdev_get_settings, |
612 | .get_link = netdev_get_link, | 612 | .get_link = netdev_get_link, |
diff --git a/drivers/net/ioc3-eth.c b/drivers/net/ioc3-eth.c index fbda7614d0ef..7acba88f9b56 100644 --- a/drivers/net/ioc3-eth.c +++ b/drivers/net/ioc3-eth.c | |||
@@ -115,7 +115,7 @@ static inline void ioc3_stop(struct ioc3_private *ip); | |||
115 | static void ioc3_init(struct net_device *dev); | 115 | static void ioc3_init(struct net_device *dev); |
116 | 116 | ||
117 | static const char ioc3_str[] = "IOC3 Ethernet"; | 117 | static const char ioc3_str[] = "IOC3 Ethernet"; |
118 | static struct ethtool_ops ioc3_ethtool_ops; | 118 | static const struct ethtool_ops ioc3_ethtool_ops; |
119 | 119 | ||
120 | /* We use this to acquire receive skb's that we can DMA directly into. */ | 120 | /* We use this to acquire receive skb's that we can DMA directly into. */ |
121 | 121 | ||
@@ -1580,7 +1580,7 @@ static u32 ioc3_get_link(struct net_device *dev) | |||
1580 | return rc; | 1580 | return rc; |
1581 | } | 1581 | } |
1582 | 1582 | ||
1583 | static struct ethtool_ops ioc3_ethtool_ops = { | 1583 | static const struct ethtool_ops ioc3_ethtool_ops = { |
1584 | .get_drvinfo = ioc3_get_drvinfo, | 1584 | .get_drvinfo = ioc3_get_drvinfo, |
1585 | .get_settings = ioc3_get_settings, | 1585 | .get_settings = ioc3_get_settings, |
1586 | .set_settings = ioc3_set_settings, | 1586 | .set_settings = ioc3_set_settings, |
diff --git a/drivers/net/iseries_veth.c b/drivers/net/iseries_veth.c index cdc14401cdbe..41b1d08fd57b 100644 --- a/drivers/net/iseries_veth.c +++ b/drivers/net/iseries_veth.c | |||
@@ -1029,7 +1029,7 @@ static u32 veth_get_link(struct net_device *dev) | |||
1029 | return 1; | 1029 | return 1; |
1030 | } | 1030 | } |
1031 | 1031 | ||
1032 | static struct ethtool_ops ops = { | 1032 | static const struct ethtool_ops ops = { |
1033 | .get_drvinfo = veth_get_drvinfo, | 1033 | .get_drvinfo = veth_get_drvinfo, |
1034 | .get_settings = veth_get_settings, | 1034 | .get_settings = veth_get_settings, |
1035 | .get_link = veth_get_link, | 1035 | .get_link = veth_get_link, |
diff --git a/drivers/net/ixgb/ixgb_ethtool.c b/drivers/net/ixgb/ixgb_ethtool.c index ba621083830a..64a383e4e892 100644 --- a/drivers/net/ixgb/ixgb_ethtool.c +++ b/drivers/net/ixgb/ixgb_ethtool.c | |||
@@ -699,7 +699,7 @@ ixgb_get_strings(struct net_device *netdev, uint32_t stringset, uint8_t *data) | |||
699 | } | 699 | } |
700 | } | 700 | } |
701 | 701 | ||
702 | static struct ethtool_ops ixgb_ethtool_ops = { | 702 | static const struct ethtool_ops ixgb_ethtool_ops = { |
703 | .get_settings = ixgb_get_settings, | 703 | .get_settings = ixgb_get_settings, |
704 | .set_settings = ixgb_set_settings, | 704 | .set_settings = ixgb_set_settings, |
705 | .get_drvinfo = ixgb_get_drvinfo, | 705 | .get_drvinfo = ixgb_get_drvinfo, |
diff --git a/drivers/net/loopback.c b/drivers/net/loopback.c index 4a9f40cdba5a..f429b19bf620 100644 --- a/drivers/net/loopback.c +++ b/drivers/net/loopback.c | |||
@@ -190,7 +190,7 @@ static u32 loopback_get_link(struct net_device *dev) | |||
190 | return 1; | 190 | return 1; |
191 | } | 191 | } |
192 | 192 | ||
193 | static struct ethtool_ops loopback_ethtool_ops = { | 193 | static const struct ethtool_ops loopback_ethtool_ops = { |
194 | .get_link = loopback_get_link, | 194 | .get_link = loopback_get_link, |
195 | .get_tso = ethtool_op_get_tso, | 195 | .get_tso = ethtool_op_get_tso, |
196 | .set_tso = ethtool_op_set_tso, | 196 | .set_tso = ethtool_op_set_tso, |
diff --git a/drivers/net/mv643xx_eth.c b/drivers/net/mv643xx_eth.c index 70fe838872db..0917a767faf8 100644 --- a/drivers/net/mv643xx_eth.c +++ b/drivers/net/mv643xx_eth.c | |||
@@ -74,7 +74,7 @@ static int ethernet_phy_detect(unsigned int eth_port_num); | |||
74 | static int mv643xx_mdio_read(struct net_device *dev, int phy_id, int location); | 74 | static int mv643xx_mdio_read(struct net_device *dev, int phy_id, int location); |
75 | static void mv643xx_mdio_write(struct net_device *dev, int phy_id, int location, int val); | 75 | static void mv643xx_mdio_write(struct net_device *dev, int phy_id, int location, int val); |
76 | static int mv643xx_eth_do_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd); | 76 | static int mv643xx_eth_do_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd); |
77 | static struct ethtool_ops mv643xx_ethtool_ops; | 77 | static const struct ethtool_ops mv643xx_ethtool_ops; |
78 | 78 | ||
79 | static char mv643xx_driver_name[] = "mv643xx_eth"; | 79 | static char mv643xx_driver_name[] = "mv643xx_eth"; |
80 | static char mv643xx_driver_version[] = "1.0"; | 80 | static char mv643xx_driver_version[] = "1.0"; |
@@ -2766,7 +2766,7 @@ static int mv643xx_eth_do_ioctl(struct net_device *dev, struct ifreq *ifr, int c | |||
2766 | return generic_mii_ioctl(&mp->mii, if_mii(ifr), cmd, NULL); | 2766 | return generic_mii_ioctl(&mp->mii, if_mii(ifr), cmd, NULL); |
2767 | } | 2767 | } |
2768 | 2768 | ||
2769 | static struct ethtool_ops mv643xx_ethtool_ops = { | 2769 | static const struct ethtool_ops mv643xx_ethtool_ops = { |
2770 | .get_settings = mv643xx_get_settings, | 2770 | .get_settings = mv643xx_get_settings, |
2771 | .set_settings = mv643xx_set_settings, | 2771 | .set_settings = mv643xx_set_settings, |
2772 | .get_drvinfo = mv643xx_get_drvinfo, | 2772 | .get_drvinfo = mv643xx_get_drvinfo, |
diff --git a/drivers/net/myri10ge/myri10ge.c b/drivers/net/myri10ge/myri10ge.c index b19e2034d11f..2773440c84be 100644 --- a/drivers/net/myri10ge/myri10ge.c +++ b/drivers/net/myri10ge/myri10ge.c | |||
@@ -1389,7 +1389,7 @@ static u32 myri10ge_get_msglevel(struct net_device *netdev) | |||
1389 | return mgp->msg_enable; | 1389 | return mgp->msg_enable; |
1390 | } | 1390 | } |
1391 | 1391 | ||
1392 | static struct ethtool_ops myri10ge_ethtool_ops = { | 1392 | static const struct ethtool_ops myri10ge_ethtool_ops = { |
1393 | .get_settings = myri10ge_get_settings, | 1393 | .get_settings = myri10ge_get_settings, |
1394 | .get_drvinfo = myri10ge_get_drvinfo, | 1394 | .get_drvinfo = myri10ge_get_drvinfo, |
1395 | .get_coalesce = myri10ge_get_coalesce, | 1395 | .get_coalesce = myri10ge_get_coalesce, |
diff --git a/drivers/net/natsemi.c b/drivers/net/natsemi.c index 51cc1e60b8c4..d7b241f7d7bc 100644 --- a/drivers/net/natsemi.c +++ b/drivers/net/natsemi.c | |||
@@ -647,7 +647,7 @@ static void enable_wol_mode(struct net_device *dev, int enable_intr); | |||
647 | static int netdev_close(struct net_device *dev); | 647 | static int netdev_close(struct net_device *dev); |
648 | static int netdev_get_regs(struct net_device *dev, u8 *buf); | 648 | static int netdev_get_regs(struct net_device *dev, u8 *buf); |
649 | static int netdev_get_eeprom(struct net_device *dev, u8 *buf); | 649 | static int netdev_get_eeprom(struct net_device *dev, u8 *buf); |
650 | static struct ethtool_ops ethtool_ops; | 650 | static const struct ethtool_ops ethtool_ops; |
651 | 651 | ||
652 | static inline void __iomem *ns_ioaddr(struct net_device *dev) | 652 | static inline void __iomem *ns_ioaddr(struct net_device *dev) |
653 | { | 653 | { |
@@ -2573,7 +2573,7 @@ static int get_eeprom(struct net_device *dev, struct ethtool_eeprom *eeprom, u8 | |||
2573 | return res; | 2573 | return res; |
2574 | } | 2574 | } |
2575 | 2575 | ||
2576 | static struct ethtool_ops ethtool_ops = { | 2576 | static const struct ethtool_ops ethtool_ops = { |
2577 | .get_drvinfo = get_drvinfo, | 2577 | .get_drvinfo = get_drvinfo, |
2578 | .get_regs_len = get_regs_len, | 2578 | .get_regs_len = get_regs_len, |
2579 | .get_eeprom_len = get_eeprom_len, | 2579 | .get_eeprom_len = get_eeprom_len, |
diff --git a/drivers/net/ne2k-pci.c b/drivers/net/ne2k-pci.c index 1ee7eac0f6ed..589785d1e762 100644 --- a/drivers/net/ne2k-pci.c +++ b/drivers/net/ne2k-pci.c | |||
@@ -175,7 +175,7 @@ static void ne2k_pci_block_input(struct net_device *dev, int count, | |||
175 | struct sk_buff *skb, int ring_offset); | 175 | struct sk_buff *skb, int ring_offset); |
176 | static void ne2k_pci_block_output(struct net_device *dev, const int count, | 176 | static void ne2k_pci_block_output(struct net_device *dev, const int count, |
177 | const unsigned char *buf, const int start_page); | 177 | const unsigned char *buf, const int start_page); |
178 | static struct ethtool_ops ne2k_pci_ethtool_ops; | 178 | static const struct ethtool_ops ne2k_pci_ethtool_ops; |
179 | 179 | ||
180 | 180 | ||
181 | 181 | ||
@@ -635,7 +635,7 @@ static void ne2k_pci_get_drvinfo(struct net_device *dev, | |||
635 | strcpy(info->bus_info, pci_name(pci_dev)); | 635 | strcpy(info->bus_info, pci_name(pci_dev)); |
636 | } | 636 | } |
637 | 637 | ||
638 | static struct ethtool_ops ne2k_pci_ethtool_ops = { | 638 | static const struct ethtool_ops ne2k_pci_ethtool_ops = { |
639 | .get_drvinfo = ne2k_pci_get_drvinfo, | 639 | .get_drvinfo = ne2k_pci_get_drvinfo, |
640 | .get_tx_csum = ethtool_op_get_tx_csum, | 640 | .get_tx_csum = ethtool_op_get_tx_csum, |
641 | .get_sg = ethtool_op_get_sg, | 641 | .get_sg = ethtool_op_get_sg, |
diff --git a/drivers/net/ns83820.c b/drivers/net/ns83820.c index ff76b81d5f3b..a05f6cbfdc0f 100644 --- a/drivers/net/ns83820.c +++ b/drivers/net/ns83820.c | |||
@@ -1273,7 +1273,7 @@ static u32 ns83820_get_link(struct net_device *ndev) | |||
1273 | return cfg & CFG_LNKSTS ? 1 : 0; | 1273 | return cfg & CFG_LNKSTS ? 1 : 0; |
1274 | } | 1274 | } |
1275 | 1275 | ||
1276 | static struct ethtool_ops ops = { | 1276 | static const struct ethtool_ops ops = { |
1277 | .get_drvinfo = ns83820_get_drvinfo, | 1277 | .get_drvinfo = ns83820_get_drvinfo, |
1278 | .get_link = ns83820_get_link | 1278 | .get_link = ns83820_get_link |
1279 | }; | 1279 | }; |
diff --git a/drivers/net/pcmcia/3c574_cs.c b/drivers/net/pcmcia/3c574_cs.c index fab93360f017..2418cdb9d317 100644 --- a/drivers/net/pcmcia/3c574_cs.c +++ b/drivers/net/pcmcia/3c574_cs.c | |||
@@ -245,7 +245,7 @@ static int el3_rx(struct net_device *dev, int worklimit); | |||
245 | static int el3_close(struct net_device *dev); | 245 | static int el3_close(struct net_device *dev); |
246 | static void el3_tx_timeout(struct net_device *dev); | 246 | static void el3_tx_timeout(struct net_device *dev); |
247 | static int el3_ioctl(struct net_device *dev, struct ifreq *rq, int cmd); | 247 | static int el3_ioctl(struct net_device *dev, struct ifreq *rq, int cmd); |
248 | static struct ethtool_ops netdev_ethtool_ops; | 248 | static const struct ethtool_ops netdev_ethtool_ops; |
249 | static void set_rx_mode(struct net_device *dev); | 249 | static void set_rx_mode(struct net_device *dev); |
250 | 250 | ||
251 | static void tc574_detach(struct pcmcia_device *p_dev); | 251 | static void tc574_detach(struct pcmcia_device *p_dev); |
@@ -1095,7 +1095,7 @@ static void netdev_get_drvinfo(struct net_device *dev, | |||
1095 | strcpy(info->driver, "3c574_cs"); | 1095 | strcpy(info->driver, "3c574_cs"); |
1096 | } | 1096 | } |
1097 | 1097 | ||
1098 | static struct ethtool_ops netdev_ethtool_ops = { | 1098 | static const struct ethtool_ops netdev_ethtool_ops = { |
1099 | .get_drvinfo = netdev_get_drvinfo, | 1099 | .get_drvinfo = netdev_get_drvinfo, |
1100 | }; | 1100 | }; |
1101 | 1101 | ||
diff --git a/drivers/net/pcmcia/3c589_cs.c b/drivers/net/pcmcia/3c589_cs.c index 875a0fe251e7..a0e2b01c027c 100644 --- a/drivers/net/pcmcia/3c589_cs.c +++ b/drivers/net/pcmcia/3c589_cs.c | |||
@@ -158,7 +158,7 @@ static int el3_rx(struct net_device *dev); | |||
158 | static int el3_close(struct net_device *dev); | 158 | static int el3_close(struct net_device *dev); |
159 | static void el3_tx_timeout(struct net_device *dev); | 159 | static void el3_tx_timeout(struct net_device *dev); |
160 | static void set_multicast_list(struct net_device *dev); | 160 | static void set_multicast_list(struct net_device *dev); |
161 | static struct ethtool_ops netdev_ethtool_ops; | 161 | static const struct ethtool_ops netdev_ethtool_ops; |
162 | 162 | ||
163 | static void tc589_detach(struct pcmcia_device *p_dev); | 163 | static void tc589_detach(struct pcmcia_device *p_dev); |
164 | 164 | ||
@@ -530,7 +530,7 @@ static void netdev_set_msglevel(struct net_device *dev, u32 level) | |||
530 | } | 530 | } |
531 | #endif /* PCMCIA_DEBUG */ | 531 | #endif /* PCMCIA_DEBUG */ |
532 | 532 | ||
533 | static struct ethtool_ops netdev_ethtool_ops = { | 533 | static const struct ethtool_ops netdev_ethtool_ops = { |
534 | .get_drvinfo = netdev_get_drvinfo, | 534 | .get_drvinfo = netdev_get_drvinfo, |
535 | #ifdef PCMCIA_DEBUG | 535 | #ifdef PCMCIA_DEBUG |
536 | .get_msglevel = netdev_get_msglevel, | 536 | .get_msglevel = netdev_get_msglevel, |
diff --git a/drivers/net/pcmcia/axnet_cs.c b/drivers/net/pcmcia/axnet_cs.c index c54f6a7ebf31..a8891a9000ac 100644 --- a/drivers/net/pcmcia/axnet_cs.c +++ b/drivers/net/pcmcia/axnet_cs.c | |||
@@ -91,7 +91,7 @@ static void axnet_release(struct pcmcia_device *link); | |||
91 | static int axnet_open(struct net_device *dev); | 91 | static int axnet_open(struct net_device *dev); |
92 | static int axnet_close(struct net_device *dev); | 92 | static int axnet_close(struct net_device *dev); |
93 | static int axnet_ioctl(struct net_device *dev, struct ifreq *rq, int cmd); | 93 | static int axnet_ioctl(struct net_device *dev, struct ifreq *rq, int cmd); |
94 | static struct ethtool_ops netdev_ethtool_ops; | 94 | static const struct ethtool_ops netdev_ethtool_ops; |
95 | static irqreturn_t ei_irq_wrapper(int irq, void *dev_id, struct pt_regs *regs); | 95 | static irqreturn_t ei_irq_wrapper(int irq, void *dev_id, struct pt_regs *regs); |
96 | static void ei_watchdog(u_long arg); | 96 | static void ei_watchdog(u_long arg); |
97 | static void axnet_reset_8390(struct net_device *dev); | 97 | static void axnet_reset_8390(struct net_device *dev); |
@@ -671,7 +671,7 @@ static void netdev_get_drvinfo(struct net_device *dev, | |||
671 | strcpy(info->driver, "axnet_cs"); | 671 | strcpy(info->driver, "axnet_cs"); |
672 | } | 672 | } |
673 | 673 | ||
674 | static struct ethtool_ops netdev_ethtool_ops = { | 674 | static const struct ethtool_ops netdev_ethtool_ops = { |
675 | .get_drvinfo = netdev_get_drvinfo, | 675 | .get_drvinfo = netdev_get_drvinfo, |
676 | }; | 676 | }; |
677 | 677 | ||
diff --git a/drivers/net/pcmcia/fmvj18x_cs.c b/drivers/net/pcmcia/fmvj18x_cs.c index 74211af0e0c9..d682f30dea6e 100644 --- a/drivers/net/pcmcia/fmvj18x_cs.c +++ b/drivers/net/pcmcia/fmvj18x_cs.c | |||
@@ -103,7 +103,7 @@ static void fjn_reset(struct net_device *dev); | |||
103 | static struct net_device_stats *fjn_get_stats(struct net_device *dev); | 103 | static struct net_device_stats *fjn_get_stats(struct net_device *dev); |
104 | static void set_rx_mode(struct net_device *dev); | 104 | static void set_rx_mode(struct net_device *dev); |
105 | static void fjn_tx_timeout(struct net_device *dev); | 105 | static void fjn_tx_timeout(struct net_device *dev); |
106 | static struct ethtool_ops netdev_ethtool_ops; | 106 | static const struct ethtool_ops netdev_ethtool_ops; |
107 | 107 | ||
108 | /* | 108 | /* |
109 | card type | 109 | card type |
@@ -1092,7 +1092,7 @@ static void netdev_set_msglevel(struct net_device *dev, u32 level) | |||
1092 | } | 1092 | } |
1093 | #endif /* PCMCIA_DEBUG */ | 1093 | #endif /* PCMCIA_DEBUG */ |
1094 | 1094 | ||
1095 | static struct ethtool_ops netdev_ethtool_ops = { | 1095 | static const struct ethtool_ops netdev_ethtool_ops = { |
1096 | .get_drvinfo = netdev_get_drvinfo, | 1096 | .get_drvinfo = netdev_get_drvinfo, |
1097 | #ifdef PCMCIA_DEBUG | 1097 | #ifdef PCMCIA_DEBUG |
1098 | .get_msglevel = netdev_get_msglevel, | 1098 | .get_msglevel = netdev_get_msglevel, |
diff --git a/drivers/net/pcmcia/ibmtr_cs.c b/drivers/net/pcmcia/ibmtr_cs.c index b8fe70b85641..bc0ca41a0542 100644 --- a/drivers/net/pcmcia/ibmtr_cs.c +++ b/drivers/net/pcmcia/ibmtr_cs.c | |||
@@ -126,7 +126,7 @@ static void netdev_get_drvinfo(struct net_device *dev, | |||
126 | strcpy(info->driver, "ibmtr_cs"); | 126 | strcpy(info->driver, "ibmtr_cs"); |
127 | } | 127 | } |
128 | 128 | ||
129 | static struct ethtool_ops netdev_ethtool_ops = { | 129 | static const struct ethtool_ops netdev_ethtool_ops = { |
130 | .get_drvinfo = netdev_get_drvinfo, | 130 | .get_drvinfo = netdev_get_drvinfo, |
131 | }; | 131 | }; |
132 | 132 | ||
diff --git a/drivers/net/pcmcia/nmclan_cs.c b/drivers/net/pcmcia/nmclan_cs.c index a8f6bfc96fd2..7d5687e94607 100644 --- a/drivers/net/pcmcia/nmclan_cs.c +++ b/drivers/net/pcmcia/nmclan_cs.c | |||
@@ -431,7 +431,7 @@ static struct net_device_stats *mace_get_stats(struct net_device *dev); | |||
431 | static int mace_rx(struct net_device *dev, unsigned char RxCnt); | 431 | static int mace_rx(struct net_device *dev, unsigned char RxCnt); |
432 | static void restore_multicast_list(struct net_device *dev); | 432 | static void restore_multicast_list(struct net_device *dev); |
433 | static void set_multicast_list(struct net_device *dev); | 433 | static void set_multicast_list(struct net_device *dev); |
434 | static struct ethtool_ops netdev_ethtool_ops; | 434 | static const struct ethtool_ops netdev_ethtool_ops; |
435 | 435 | ||
436 | 436 | ||
437 | static void nmclan_detach(struct pcmcia_device *p_dev); | 437 | static void nmclan_detach(struct pcmcia_device *p_dev); |
@@ -907,7 +907,7 @@ static void netdev_set_msglevel(struct net_device *dev, u32 level) | |||
907 | } | 907 | } |
908 | #endif /* PCMCIA_DEBUG */ | 908 | #endif /* PCMCIA_DEBUG */ |
909 | 909 | ||
910 | static struct ethtool_ops netdev_ethtool_ops = { | 910 | static const struct ethtool_ops netdev_ethtool_ops = { |
911 | .get_drvinfo = netdev_get_drvinfo, | 911 | .get_drvinfo = netdev_get_drvinfo, |
912 | #ifdef PCMCIA_DEBUG | 912 | #ifdef PCMCIA_DEBUG |
913 | .get_msglevel = netdev_get_msglevel, | 913 | .get_msglevel = netdev_get_msglevel, |
diff --git a/drivers/net/pcmcia/pcnet_cs.c b/drivers/net/pcmcia/pcnet_cs.c index cc0dcc9bf636..a09c22840f63 100644 --- a/drivers/net/pcmcia/pcnet_cs.c +++ b/drivers/net/pcmcia/pcnet_cs.c | |||
@@ -108,7 +108,7 @@ static void pcnet_release(struct pcmcia_device *link); | |||
108 | static int pcnet_open(struct net_device *dev); | 108 | static int pcnet_open(struct net_device *dev); |
109 | static int pcnet_close(struct net_device *dev); | 109 | static int pcnet_close(struct net_device *dev); |
110 | static int ei_ioctl(struct net_device *dev, struct ifreq *rq, int cmd); | 110 | static int ei_ioctl(struct net_device *dev, struct ifreq *rq, int cmd); |
111 | static struct ethtool_ops netdev_ethtool_ops; | 111 | static const struct ethtool_ops netdev_ethtool_ops; |
112 | static irqreturn_t ei_irq_wrapper(int irq, void *dev_id, struct pt_regs *regs); | 112 | static irqreturn_t ei_irq_wrapper(int irq, void *dev_id, struct pt_regs *regs); |
113 | static void ei_watchdog(u_long arg); | 113 | static void ei_watchdog(u_long arg); |
114 | static void pcnet_reset_8390(struct net_device *dev); | 114 | static void pcnet_reset_8390(struct net_device *dev); |
@@ -1181,7 +1181,7 @@ static void netdev_get_drvinfo(struct net_device *dev, | |||
1181 | strcpy(info->driver, "pcnet_cs"); | 1181 | strcpy(info->driver, "pcnet_cs"); |
1182 | } | 1182 | } |
1183 | 1183 | ||
1184 | static struct ethtool_ops netdev_ethtool_ops = { | 1184 | static const struct ethtool_ops netdev_ethtool_ops = { |
1185 | .get_drvinfo = netdev_get_drvinfo, | 1185 | .get_drvinfo = netdev_get_drvinfo, |
1186 | }; | 1186 | }; |
1187 | 1187 | ||
diff --git a/drivers/net/pcmcia/smc91c92_cs.c b/drivers/net/pcmcia/smc91c92_cs.c index 3fb369f2e7ed..a2f3a0e2a005 100644 --- a/drivers/net/pcmcia/smc91c92_cs.c +++ b/drivers/net/pcmcia/smc91c92_cs.c | |||
@@ -299,7 +299,7 @@ static void mdio_sync(kio_addr_t addr); | |||
299 | static int mdio_read(struct net_device *dev, int phy_id, int loc); | 299 | static int mdio_read(struct net_device *dev, int phy_id, int loc); |
300 | static void mdio_write(struct net_device *dev, int phy_id, int loc, int value); | 300 | static void mdio_write(struct net_device *dev, int phy_id, int loc, int value); |
301 | static int smc_link_ok(struct net_device *dev); | 301 | static int smc_link_ok(struct net_device *dev); |
302 | static struct ethtool_ops ethtool_ops; | 302 | static const struct ethtool_ops ethtool_ops; |
303 | 303 | ||
304 | /*====================================================================== | 304 | /*====================================================================== |
305 | 305 | ||
@@ -2207,7 +2207,7 @@ static int smc_nway_reset(struct net_device *dev) | |||
2207 | return -EOPNOTSUPP; | 2207 | return -EOPNOTSUPP; |
2208 | } | 2208 | } |
2209 | 2209 | ||
2210 | static struct ethtool_ops ethtool_ops = { | 2210 | static const struct ethtool_ops ethtool_ops = { |
2211 | .begin = check_if_running, | 2211 | .begin = check_if_running, |
2212 | .get_drvinfo = smc_get_drvinfo, | 2212 | .get_drvinfo = smc_get_drvinfo, |
2213 | .get_settings = smc_get_settings, | 2213 | .get_settings = smc_get_settings, |
diff --git a/drivers/net/pcmcia/xirc2ps_cs.c b/drivers/net/pcmcia/xirc2ps_cs.c index 4122bb46f5ff..62664c01eb45 100644 --- a/drivers/net/pcmcia/xirc2ps_cs.c +++ b/drivers/net/pcmcia/xirc2ps_cs.c | |||
@@ -361,7 +361,7 @@ static int set_card_type(struct pcmcia_device *link, const void *s); | |||
361 | static int do_config(struct net_device *dev, struct ifmap *map); | 361 | static int do_config(struct net_device *dev, struct ifmap *map); |
362 | static int do_open(struct net_device *dev); | 362 | static int do_open(struct net_device *dev); |
363 | static int do_ioctl(struct net_device *dev, struct ifreq *rq, int cmd); | 363 | static int do_ioctl(struct net_device *dev, struct ifreq *rq, int cmd); |
364 | static struct ethtool_ops netdev_ethtool_ops; | 364 | static const struct ethtool_ops netdev_ethtool_ops; |
365 | static void hardreset(struct net_device *dev); | 365 | static void hardreset(struct net_device *dev); |
366 | static void do_reset(struct net_device *dev, int full); | 366 | static void do_reset(struct net_device *dev, int full); |
367 | static int init_mii(struct net_device *dev); | 367 | static int init_mii(struct net_device *dev); |
@@ -1553,7 +1553,7 @@ static void netdev_get_drvinfo(struct net_device *dev, | |||
1553 | sprintf(info->bus_info, "PCMCIA 0x%lx", dev->base_addr); | 1553 | sprintf(info->bus_info, "PCMCIA 0x%lx", dev->base_addr); |
1554 | } | 1554 | } |
1555 | 1555 | ||
1556 | static struct ethtool_ops netdev_ethtool_ops = { | 1556 | static const struct ethtool_ops netdev_ethtool_ops = { |
1557 | .get_drvinfo = netdev_get_drvinfo, | 1557 | .get_drvinfo = netdev_get_drvinfo, |
1558 | }; | 1558 | }; |
1559 | 1559 | ||
diff --git a/drivers/net/pcnet32.c b/drivers/net/pcnet32.c index de05aeb734da..21dc68eff514 100644 --- a/drivers/net/pcnet32.c +++ b/drivers/net/pcnet32.c | |||
@@ -1499,7 +1499,7 @@ static void pcnet32_get_regs(struct net_device *dev, struct ethtool_regs *regs, | |||
1499 | spin_unlock_irqrestore(&lp->lock, flags); | 1499 | spin_unlock_irqrestore(&lp->lock, flags); |
1500 | } | 1500 | } |
1501 | 1501 | ||
1502 | static struct ethtool_ops pcnet32_ethtool_ops = { | 1502 | static const struct ethtool_ops pcnet32_ethtool_ops = { |
1503 | .get_settings = pcnet32_get_settings, | 1503 | .get_settings = pcnet32_get_settings, |
1504 | .set_settings = pcnet32_set_settings, | 1504 | .set_settings = pcnet32_set_settings, |
1505 | .get_drvinfo = pcnet32_get_drvinfo, | 1505 | .get_drvinfo = pcnet32_get_drvinfo, |
diff --git a/drivers/net/qla3xxx.c b/drivers/net/qla3xxx.c index c729aeeb4696..09a481a71838 100644 --- a/drivers/net/qla3xxx.c +++ b/drivers/net/qla3xxx.c | |||
@@ -1588,7 +1588,7 @@ static void ql_set_msglevel(struct net_device *ndev, u32 value) | |||
1588 | qdev->msg_enable = value; | 1588 | qdev->msg_enable = value; |
1589 | } | 1589 | } |
1590 | 1590 | ||
1591 | static struct ethtool_ops ql3xxx_ethtool_ops = { | 1591 | static const struct ethtool_ops ql3xxx_ethtool_ops = { |
1592 | .get_settings = ql_get_settings, | 1592 | .get_settings = ql_get_settings, |
1593 | .get_drvinfo = ql_get_drvinfo, | 1593 | .get_drvinfo = ql_get_drvinfo, |
1594 | .get_perm_addr = ethtool_op_get_perm_addr, | 1594 | .get_perm_addr = ethtool_op_get_perm_addr, |
diff --git a/drivers/net/r8169.c b/drivers/net/r8169.c index ebb948bbd589..c3015d68bbbe 100644 --- a/drivers/net/r8169.c +++ b/drivers/net/r8169.c | |||
@@ -1124,7 +1124,7 @@ static void rtl8169_get_strings(struct net_device *dev, u32 stringset, u8 *data) | |||
1124 | } | 1124 | } |
1125 | 1125 | ||
1126 | 1126 | ||
1127 | static struct ethtool_ops rtl8169_ethtool_ops = { | 1127 | static const struct ethtool_ops rtl8169_ethtool_ops = { |
1128 | .get_drvinfo = rtl8169_get_drvinfo, | 1128 | .get_drvinfo = rtl8169_get_drvinfo, |
1129 | .get_regs_len = rtl8169_get_regs_len, | 1129 | .get_regs_len = rtl8169_get_regs_len, |
1130 | .get_link = ethtool_op_get_link, | 1130 | .get_link = ethtool_op_get_link, |
diff --git a/drivers/net/rionet.c b/drivers/net/rionet.c index 12cde0604580..b7ff484af3e1 100644 --- a/drivers/net/rionet.c +++ b/drivers/net/rionet.c | |||
@@ -427,7 +427,7 @@ static void rionet_set_msglevel(struct net_device *ndev, u32 value) | |||
427 | rnet->msg_enable = value; | 427 | rnet->msg_enable = value; |
428 | } | 428 | } |
429 | 429 | ||
430 | static struct ethtool_ops rionet_ethtool_ops = { | 430 | static const struct ethtool_ops rionet_ethtool_ops = { |
431 | .get_drvinfo = rionet_get_drvinfo, | 431 | .get_drvinfo = rionet_get_drvinfo, |
432 | .get_msglevel = rionet_get_msglevel, | 432 | .get_msglevel = rionet_get_msglevel, |
433 | .set_msglevel = rionet_set_msglevel, | 433 | .set_msglevel = rionet_set_msglevel, |
diff --git a/drivers/net/s2io.c b/drivers/net/s2io.c index b93751c3d036..542059107538 100644 --- a/drivers/net/s2io.c +++ b/drivers/net/s2io.c | |||
@@ -5736,7 +5736,7 @@ static int s2io_ethtool_op_set_tso(struct net_device *dev, u32 data) | |||
5736 | return 0; | 5736 | return 0; |
5737 | } | 5737 | } |
5738 | 5738 | ||
5739 | static struct ethtool_ops netdev_ethtool_ops = { | 5739 | static const struct ethtool_ops netdev_ethtool_ops = { |
5740 | .get_settings = s2io_ethtool_gset, | 5740 | .get_settings = s2io_ethtool_gset, |
5741 | .set_settings = s2io_ethtool_sset, | 5741 | .set_settings = s2io_ethtool_sset, |
5742 | .get_drvinfo = s2io_ethtool_gdrvinfo, | 5742 | .get_drvinfo = s2io_ethtool_gdrvinfo, |
diff --git a/drivers/net/s2io.h b/drivers/net/s2io.h index 7142cf80d730..3afd9126a591 100644 --- a/drivers/net/s2io.h +++ b/drivers/net/s2io.h | |||
@@ -999,7 +999,7 @@ static irqreturn_t | |||
999 | s2io_msix_fifo_handle(int irq, void *dev_id, struct pt_regs *regs); | 999 | s2io_msix_fifo_handle(int irq, void *dev_id, struct pt_regs *regs); |
1000 | static irqreturn_t s2io_isr(int irq, void *dev_id, struct pt_regs *regs); | 1000 | static irqreturn_t s2io_isr(int irq, void *dev_id, struct pt_regs *regs); |
1001 | static int verify_xena_quiescence(nic_t *sp, u64 val64, int flag); | 1001 | static int verify_xena_quiescence(nic_t *sp, u64 val64, int flag); |
1002 | static struct ethtool_ops netdev_ethtool_ops; | 1002 | static const struct ethtool_ops netdev_ethtool_ops; |
1003 | static void s2io_set_link(unsigned long data); | 1003 | static void s2io_set_link(unsigned long data); |
1004 | static int s2io_set_swapper(nic_t * sp); | 1004 | static int s2io_set_swapper(nic_t * sp); |
1005 | static void s2io_card_down(nic_t *nic); | 1005 | static void s2io_card_down(nic_t *nic); |
diff --git a/drivers/net/sis190.c b/drivers/net/sis190.c index 7c1982af2a44..e8f26b79bbaf 100644 --- a/drivers/net/sis190.c +++ b/drivers/net/sis190.c | |||
@@ -1747,7 +1747,7 @@ static void sis190_set_msglevel(struct net_device *dev, u32 value) | |||
1747 | tp->msg_enable = value; | 1747 | tp->msg_enable = value; |
1748 | } | 1748 | } |
1749 | 1749 | ||
1750 | static struct ethtool_ops sis190_ethtool_ops = { | 1750 | static const struct ethtool_ops sis190_ethtool_ops = { |
1751 | .get_settings = sis190_get_settings, | 1751 | .get_settings = sis190_get_settings, |
1752 | .set_settings = sis190_set_settings, | 1752 | .set_settings = sis190_set_settings, |
1753 | .get_drvinfo = sis190_get_drvinfo, | 1753 | .get_drvinfo = sis190_get_drvinfo, |
diff --git a/drivers/net/sis900.c b/drivers/net/sis900.c index 430500da6a9d..28606e20df1c 100644 --- a/drivers/net/sis900.c +++ b/drivers/net/sis900.c | |||
@@ -232,7 +232,7 @@ static void sis900_set_capability( struct net_device *net_dev ,struct mii_phy *p | |||
232 | static u16 sis900_reset_phy(struct net_device *net_dev, int phy_addr); | 232 | static u16 sis900_reset_phy(struct net_device *net_dev, int phy_addr); |
233 | static void sis900_auto_negotiate(struct net_device *net_dev, int phy_addr); | 233 | static void sis900_auto_negotiate(struct net_device *net_dev, int phy_addr); |
234 | static void sis900_set_mode (long ioaddr, int speed, int duplex); | 234 | static void sis900_set_mode (long ioaddr, int speed, int duplex); |
235 | static struct ethtool_ops sis900_ethtool_ops; | 235 | static const struct ethtool_ops sis900_ethtool_ops; |
236 | 236 | ||
237 | /** | 237 | /** |
238 | * sis900_get_mac_addr - Get MAC address for stand alone SiS900 model | 238 | * sis900_get_mac_addr - Get MAC address for stand alone SiS900 model |
@@ -2099,7 +2099,7 @@ static void sis900_get_wol(struct net_device *net_dev, struct ethtool_wolinfo *w | |||
2099 | wol->supported = (WAKE_PHY | WAKE_MAGIC); | 2099 | wol->supported = (WAKE_PHY | WAKE_MAGIC); |
2100 | } | 2100 | } |
2101 | 2101 | ||
2102 | static struct ethtool_ops sis900_ethtool_ops = { | 2102 | static const struct ethtool_ops sis900_ethtool_ops = { |
2103 | .get_drvinfo = sis900_get_drvinfo, | 2103 | .get_drvinfo = sis900_get_drvinfo, |
2104 | .get_msglevel = sis900_get_msglevel, | 2104 | .get_msglevel = sis900_get_msglevel, |
2105 | .set_msglevel = sis900_set_msglevel, | 2105 | .set_msglevel = sis900_set_msglevel, |
diff --git a/drivers/net/sk98lin/skethtool.c b/drivers/net/sk98lin/skethtool.c index 4265ed91a9c4..e5cb5b548b88 100644 --- a/drivers/net/sk98lin/skethtool.c +++ b/drivers/net/sk98lin/skethtool.c | |||
@@ -581,7 +581,7 @@ static int setRxCsum(struct net_device *dev, u32 data) | |||
581 | return 0; | 581 | return 0; |
582 | } | 582 | } |
583 | 583 | ||
584 | struct ethtool_ops SkGeEthtoolOps = { | 584 | const struct ethtool_ops SkGeEthtoolOps = { |
585 | .get_settings = getSettings, | 585 | .get_settings = getSettings, |
586 | .set_settings = setSettings, | 586 | .set_settings = setSettings, |
587 | .get_drvinfo = getDriverInfo, | 587 | .get_drvinfo = getDriverInfo, |
diff --git a/drivers/net/sk98lin/skge.c b/drivers/net/sk98lin/skge.c index 49e76c7f10da..0ecfc14e7990 100644 --- a/drivers/net/sk98lin/skge.c +++ b/drivers/net/sk98lin/skge.c | |||
@@ -248,7 +248,7 @@ static void DumpLong(char*, int); | |||
248 | 248 | ||
249 | /* global variables *********************************************************/ | 249 | /* global variables *********************************************************/ |
250 | static SK_BOOL DoPrintInterfaceChange = SK_TRUE; | 250 | static SK_BOOL DoPrintInterfaceChange = SK_TRUE; |
251 | extern struct ethtool_ops SkGeEthtoolOps; | 251 | extern const struct ethtool_ops SkGeEthtoolOps; |
252 | 252 | ||
253 | /* local variables **********************************************************/ | 253 | /* local variables **********************************************************/ |
254 | static uintptr_t TxQueueAddr[SK_MAX_MACS][2] = {{0x680, 0x600},{0x780, 0x700}}; | 254 | static uintptr_t TxQueueAddr[SK_MAX_MACS][2] = {{0x680, 0x600},{0x780, 0x700}}; |
diff --git a/drivers/net/skge.c b/drivers/net/skge.c index fba8b7455d8b..4b267b85fff2 100644 --- a/drivers/net/skge.c +++ b/drivers/net/skge.c | |||
@@ -691,7 +691,7 @@ static int skge_phys_id(struct net_device *dev, u32 data) | |||
691 | return 0; | 691 | return 0; |
692 | } | 692 | } |
693 | 693 | ||
694 | static struct ethtool_ops skge_ethtool_ops = { | 694 | static const struct ethtool_ops skge_ethtool_ops = { |
695 | .get_settings = skge_get_settings, | 695 | .get_settings = skge_get_settings, |
696 | .set_settings = skge_set_settings, | 696 | .set_settings = skge_set_settings, |
697 | .get_drvinfo = skge_get_drvinfo, | 697 | .get_drvinfo = skge_get_drvinfo, |
diff --git a/drivers/net/sky2.c b/drivers/net/sky2.c index 9429859be54f..c4c51f1418f5 100644 --- a/drivers/net/sky2.c +++ b/drivers/net/sky2.c | |||
@@ -3033,7 +3033,7 @@ static void sky2_get_regs(struct net_device *dev, struct ethtool_regs *regs, | |||
3033 | regs->len - B3_RI_WTO_R1); | 3033 | regs->len - B3_RI_WTO_R1); |
3034 | } | 3034 | } |
3035 | 3035 | ||
3036 | static struct ethtool_ops sky2_ethtool_ops = { | 3036 | static const struct ethtool_ops sky2_ethtool_ops = { |
3037 | .get_settings = sky2_get_settings, | 3037 | .get_settings = sky2_get_settings, |
3038 | .set_settings = sky2_set_settings, | 3038 | .set_settings = sky2_set_settings, |
3039 | .get_drvinfo = sky2_get_drvinfo, | 3039 | .get_drvinfo = sky2_get_drvinfo, |
diff --git a/drivers/net/smc911x.c b/drivers/net/smc911x.c index 4438fe8c9499..a621b17456e5 100644 --- a/drivers/net/smc911x.c +++ b/drivers/net/smc911x.c | |||
@@ -1821,7 +1821,7 @@ static int smc911x_ethtool_geteeprom_len(struct net_device *dev) | |||
1821 | return SMC911X_EEPROM_LEN; | 1821 | return SMC911X_EEPROM_LEN; |
1822 | } | 1822 | } |
1823 | 1823 | ||
1824 | static struct ethtool_ops smc911x_ethtool_ops = { | 1824 | static const struct ethtool_ops smc911x_ethtool_ops = { |
1825 | .get_settings = smc911x_ethtool_getsettings, | 1825 | .get_settings = smc911x_ethtool_getsettings, |
1826 | .set_settings = smc911x_ethtool_setsettings, | 1826 | .set_settings = smc911x_ethtool_setsettings, |
1827 | .get_drvinfo = smc911x_ethtool_getdrvinfo, | 1827 | .get_drvinfo = smc911x_ethtool_getdrvinfo, |
diff --git a/drivers/net/smc91x.c b/drivers/net/smc91x.c index 4edfa7fc483a..d7e56438b5d6 100644 --- a/drivers/net/smc91x.c +++ b/drivers/net/smc91x.c | |||
@@ -1739,7 +1739,7 @@ static void smc_ethtool_setmsglevel(struct net_device *dev, u32 level) | |||
1739 | lp->msg_enable = level; | 1739 | lp->msg_enable = level; |
1740 | } | 1740 | } |
1741 | 1741 | ||
1742 | static struct ethtool_ops smc_ethtool_ops = { | 1742 | static const struct ethtool_ops smc_ethtool_ops = { |
1743 | .get_settings = smc_ethtool_getsettings, | 1743 | .get_settings = smc_ethtool_getsettings, |
1744 | .set_settings = smc_ethtool_setsettings, | 1744 | .set_settings = smc_ethtool_setsettings, |
1745 | .get_drvinfo = smc_ethtool_getdrvinfo, | 1745 | .get_drvinfo = smc_ethtool_getdrvinfo, |
diff --git a/drivers/net/spider_net.h b/drivers/net/spider_net.h index 30407cdf0892..2e80882b345a 100644 --- a/drivers/net/spider_net.h +++ b/drivers/net/spider_net.h | |||
@@ -29,7 +29,7 @@ | |||
29 | extern int spider_net_stop(struct net_device *netdev); | 29 | extern int spider_net_stop(struct net_device *netdev); |
30 | extern int spider_net_open(struct net_device *netdev); | 30 | extern int spider_net_open(struct net_device *netdev); |
31 | 31 | ||
32 | extern struct ethtool_ops spider_net_ethtool_ops; | 32 | extern const struct ethtool_ops spider_net_ethtool_ops; |
33 | 33 | ||
34 | extern char spider_net_driver_name[]; | 34 | extern char spider_net_driver_name[]; |
35 | 35 | ||
diff --git a/drivers/net/spider_net_ethtool.c b/drivers/net/spider_net_ethtool.c index 02209222b8c9..b0e65d0e0645 100644 --- a/drivers/net/spider_net_ethtool.c +++ b/drivers/net/spider_net_ethtool.c | |||
@@ -142,7 +142,7 @@ spider_net_ethtool_get_ringparam(struct net_device *netdev, | |||
142 | ering->rx_pending = card->rx_desc; | 142 | ering->rx_pending = card->rx_desc; |
143 | } | 143 | } |
144 | 144 | ||
145 | struct ethtool_ops spider_net_ethtool_ops = { | 145 | const struct ethtool_ops spider_net_ethtool_ops = { |
146 | .get_settings = spider_net_ethtool_get_settings, | 146 | .get_settings = spider_net_ethtool_get_settings, |
147 | .get_drvinfo = spider_net_ethtool_get_drvinfo, | 147 | .get_drvinfo = spider_net_ethtool_get_drvinfo, |
148 | .get_wol = spider_net_ethtool_get_wol, | 148 | .get_wol = spider_net_ethtool_get_wol, |
diff --git a/drivers/net/starfire.c b/drivers/net/starfire.c index 525b098a3254..337c3b7ac90e 100644 --- a/drivers/net/starfire.c +++ b/drivers/net/starfire.c | |||
@@ -642,7 +642,7 @@ static struct net_device_stats *get_stats(struct net_device *dev); | |||
642 | static int netdev_ioctl(struct net_device *dev, struct ifreq *rq, int cmd); | 642 | static int netdev_ioctl(struct net_device *dev, struct ifreq *rq, int cmd); |
643 | static int netdev_close(struct net_device *dev); | 643 | static int netdev_close(struct net_device *dev); |
644 | static void netdev_media_change(struct net_device *dev); | 644 | static void netdev_media_change(struct net_device *dev); |
645 | static struct ethtool_ops ethtool_ops; | 645 | static const struct ethtool_ops ethtool_ops; |
646 | 646 | ||
647 | 647 | ||
648 | #ifdef VLAN_SUPPORT | 648 | #ifdef VLAN_SUPPORT |
@@ -1868,7 +1868,7 @@ static void set_msglevel(struct net_device *dev, u32 val) | |||
1868 | debug = val; | 1868 | debug = val; |
1869 | } | 1869 | } |
1870 | 1870 | ||
1871 | static struct ethtool_ops ethtool_ops = { | 1871 | static const struct ethtool_ops ethtool_ops = { |
1872 | .begin = check_if_running, | 1872 | .begin = check_if_running, |
1873 | .get_drvinfo = get_drvinfo, | 1873 | .get_drvinfo = get_drvinfo, |
1874 | .get_settings = get_settings, | 1874 | .get_settings = get_settings, |
diff --git a/drivers/net/sunbmac.c b/drivers/net/sunbmac.c index d46891510767..9e4be86495a0 100644 --- a/drivers/net/sunbmac.c +++ b/drivers/net/sunbmac.c | |||
@@ -1071,7 +1071,7 @@ static u32 bigmac_get_link(struct net_device *dev) | |||
1071 | return (bp->sw_bmsr & BMSR_LSTATUS); | 1071 | return (bp->sw_bmsr & BMSR_LSTATUS); |
1072 | } | 1072 | } |
1073 | 1073 | ||
1074 | static struct ethtool_ops bigmac_ethtool_ops = { | 1074 | static const struct ethtool_ops bigmac_ethtool_ops = { |
1075 | .get_drvinfo = bigmac_get_drvinfo, | 1075 | .get_drvinfo = bigmac_get_drvinfo, |
1076 | .get_link = bigmac_get_link, | 1076 | .get_link = bigmac_get_link, |
1077 | }; | 1077 | }; |
diff --git a/drivers/net/sundance.c b/drivers/net/sundance.c index f64a28513ba2..6b8f4baf87fd 100644 --- a/drivers/net/sundance.c +++ b/drivers/net/sundance.c | |||
@@ -431,7 +431,7 @@ static int __set_mac_addr(struct net_device *dev); | |||
431 | static struct net_device_stats *get_stats(struct net_device *dev); | 431 | static struct net_device_stats *get_stats(struct net_device *dev); |
432 | static int netdev_ioctl(struct net_device *dev, struct ifreq *rq, int cmd); | 432 | static int netdev_ioctl(struct net_device *dev, struct ifreq *rq, int cmd); |
433 | static int netdev_close(struct net_device *dev); | 433 | static int netdev_close(struct net_device *dev); |
434 | static struct ethtool_ops ethtool_ops; | 434 | static const struct ethtool_ops ethtool_ops; |
435 | 435 | ||
436 | static void sundance_reset(struct net_device *dev, unsigned long reset_cmd) | 436 | static void sundance_reset(struct net_device *dev, unsigned long reset_cmd) |
437 | { | 437 | { |
@@ -1569,7 +1569,7 @@ static void set_msglevel(struct net_device *dev, u32 val) | |||
1569 | np->msg_enable = val; | 1569 | np->msg_enable = val; |
1570 | } | 1570 | } |
1571 | 1571 | ||
1572 | static struct ethtool_ops ethtool_ops = { | 1572 | static const struct ethtool_ops ethtool_ops = { |
1573 | .begin = check_if_running, | 1573 | .begin = check_if_running, |
1574 | .get_drvinfo = get_drvinfo, | 1574 | .get_drvinfo = get_drvinfo, |
1575 | .get_settings = get_settings, | 1575 | .get_settings = get_settings, |
diff --git a/drivers/net/sungem.c b/drivers/net/sungem.c index eb8a47605837..e567d0ae77ee 100644 --- a/drivers/net/sungem.c +++ b/drivers/net/sungem.c | |||
@@ -2753,7 +2753,7 @@ static int gem_set_wol(struct net_device *dev, struct ethtool_wolinfo *wol) | |||
2753 | return 0; | 2753 | return 0; |
2754 | } | 2754 | } |
2755 | 2755 | ||
2756 | static struct ethtool_ops gem_ethtool_ops = { | 2756 | static const struct ethtool_ops gem_ethtool_ops = { |
2757 | .get_drvinfo = gem_get_drvinfo, | 2757 | .get_drvinfo = gem_get_drvinfo, |
2758 | .get_link = ethtool_op_get_link, | 2758 | .get_link = ethtool_op_get_link, |
2759 | .get_settings = gem_get_settings, | 2759 | .get_settings = gem_get_settings, |
diff --git a/drivers/net/sunhme.c b/drivers/net/sunhme.c index 6779ac1f904a..2ff0ded24000 100644 --- a/drivers/net/sunhme.c +++ b/drivers/net/sunhme.c | |||
@@ -2512,7 +2512,7 @@ static u32 hme_get_link(struct net_device *dev) | |||
2512 | return (hp->sw_bmsr & BMSR_LSTATUS); | 2512 | return (hp->sw_bmsr & BMSR_LSTATUS); |
2513 | } | 2513 | } |
2514 | 2514 | ||
2515 | static struct ethtool_ops hme_ethtool_ops = { | 2515 | static const struct ethtool_ops hme_ethtool_ops = { |
2516 | .get_settings = hme_get_settings, | 2516 | .get_settings = hme_get_settings, |
2517 | .set_settings = hme_set_settings, | 2517 | .set_settings = hme_set_settings, |
2518 | .get_drvinfo = hme_get_drvinfo, | 2518 | .get_drvinfo = hme_get_drvinfo, |
diff --git a/drivers/net/sunlance.c b/drivers/net/sunlance.c index e4c8576454d7..77670741e101 100644 --- a/drivers/net/sunlance.c +++ b/drivers/net/sunlance.c | |||
@@ -1318,7 +1318,7 @@ static u32 sparc_lance_get_link(struct net_device *dev) | |||
1318 | return 1; | 1318 | return 1; |
1319 | } | 1319 | } |
1320 | 1320 | ||
1321 | static struct ethtool_ops sparc_lance_ethtool_ops = { | 1321 | static const struct ethtool_ops sparc_lance_ethtool_ops = { |
1322 | .get_drvinfo = sparc_lance_get_drvinfo, | 1322 | .get_drvinfo = sparc_lance_get_drvinfo, |
1323 | .get_link = sparc_lance_get_link, | 1323 | .get_link = sparc_lance_get_link, |
1324 | }; | 1324 | }; |
diff --git a/drivers/net/sunqe.c b/drivers/net/sunqe.c index d5c1448d587c..9202a1c369dd 100644 --- a/drivers/net/sunqe.c +++ b/drivers/net/sunqe.c | |||
@@ -718,7 +718,7 @@ static u32 qe_get_link(struct net_device *dev) | |||
718 | return (phyconfig & MREGS_PHYCONFIG_LSTAT); | 718 | return (phyconfig & MREGS_PHYCONFIG_LSTAT); |
719 | } | 719 | } |
720 | 720 | ||
721 | static struct ethtool_ops qe_ethtool_ops = { | 721 | static const struct ethtool_ops qe_ethtool_ops = { |
722 | .get_drvinfo = qe_get_drvinfo, | 722 | .get_drvinfo = qe_get_drvinfo, |
723 | .get_link = qe_get_link, | 723 | .get_link = qe_get_link, |
724 | }; | 724 | }; |
diff --git a/drivers/net/tg3.c b/drivers/net/tg3.c index 4d66d86e41ea..3b84ac234644 100644 --- a/drivers/net/tg3.c +++ b/drivers/net/tg3.c | |||
@@ -8962,7 +8962,7 @@ static int tg3_set_coalesce(struct net_device *dev, struct ethtool_coalesce *ec) | |||
8962 | return 0; | 8962 | return 0; |
8963 | } | 8963 | } |
8964 | 8964 | ||
8965 | static struct ethtool_ops tg3_ethtool_ops = { | 8965 | static const struct ethtool_ops tg3_ethtool_ops = { |
8966 | .get_settings = tg3_get_settings, | 8966 | .get_settings = tg3_get_settings, |
8967 | .set_settings = tg3_set_settings, | 8967 | .set_settings = tg3_set_settings, |
8968 | .get_drvinfo = tg3_get_drvinfo, | 8968 | .get_drvinfo = tg3_get_drvinfo, |
diff --git a/drivers/net/tulip/de2104x.c b/drivers/net/tulip/de2104x.c index 17a2ebaef58c..e1b48bd86646 100644 --- a/drivers/net/tulip/de2104x.c +++ b/drivers/net/tulip/de2104x.c | |||
@@ -1670,7 +1670,7 @@ static void de_get_regs(struct net_device *dev, struct ethtool_regs *regs, | |||
1670 | spin_unlock_irq(&de->lock); | 1670 | spin_unlock_irq(&de->lock); |
1671 | } | 1671 | } |
1672 | 1672 | ||
1673 | static struct ethtool_ops de_ethtool_ops = { | 1673 | static const struct ethtool_ops de_ethtool_ops = { |
1674 | .get_link = ethtool_op_get_link, | 1674 | .get_link = ethtool_op_get_link, |
1675 | .get_tx_csum = ethtool_op_get_tx_csum, | 1675 | .get_tx_csum = ethtool_op_get_tx_csum, |
1676 | .get_sg = ethtool_op_get_sg, | 1676 | .get_sg = ethtool_op_get_sg, |
diff --git a/drivers/net/tulip/dmfe.c b/drivers/net/tulip/dmfe.c index 66dade556821..ccf2c225f084 100644 --- a/drivers/net/tulip/dmfe.c +++ b/drivers/net/tulip/dmfe.c | |||
@@ -298,7 +298,7 @@ static int dmfe_start_xmit(struct sk_buff *, struct DEVICE *); | |||
298 | static int dmfe_stop(struct DEVICE *); | 298 | static int dmfe_stop(struct DEVICE *); |
299 | static struct net_device_stats * dmfe_get_stats(struct DEVICE *); | 299 | static struct net_device_stats * dmfe_get_stats(struct DEVICE *); |
300 | static void dmfe_set_filter_mode(struct DEVICE *); | 300 | static void dmfe_set_filter_mode(struct DEVICE *); |
301 | static struct ethtool_ops netdev_ethtool_ops; | 301 | static const struct ethtool_ops netdev_ethtool_ops; |
302 | static u16 read_srom_word(long ,int); | 302 | static u16 read_srom_word(long ,int); |
303 | static irqreturn_t dmfe_interrupt(int , void *, struct pt_regs *); | 303 | static irqreturn_t dmfe_interrupt(int , void *, struct pt_regs *); |
304 | #ifdef CONFIG_NET_POLL_CONTROLLER | 304 | #ifdef CONFIG_NET_POLL_CONTROLLER |
@@ -1048,7 +1048,7 @@ static void netdev_get_drvinfo(struct net_device *dev, | |||
1048 | dev->base_addr, dev->irq); | 1048 | dev->base_addr, dev->irq); |
1049 | } | 1049 | } |
1050 | 1050 | ||
1051 | static struct ethtool_ops netdev_ethtool_ops = { | 1051 | static const struct ethtool_ops netdev_ethtool_ops = { |
1052 | .get_drvinfo = netdev_get_drvinfo, | 1052 | .get_drvinfo = netdev_get_drvinfo, |
1053 | }; | 1053 | }; |
1054 | 1054 | ||
diff --git a/drivers/net/tulip/tulip_core.c b/drivers/net/tulip/tulip_core.c index 0a339dff014e..831919a81918 100644 --- a/drivers/net/tulip/tulip_core.c +++ b/drivers/net/tulip/tulip_core.c | |||
@@ -837,7 +837,7 @@ static void tulip_get_drvinfo(struct net_device *dev, struct ethtool_drvinfo *in | |||
837 | strcpy(info->bus_info, pci_name(np->pdev)); | 837 | strcpy(info->bus_info, pci_name(np->pdev)); |
838 | } | 838 | } |
839 | 839 | ||
840 | static struct ethtool_ops ops = { | 840 | static const struct ethtool_ops ops = { |
841 | .get_drvinfo = tulip_get_drvinfo | 841 | .get_drvinfo = tulip_get_drvinfo |
842 | }; | 842 | }; |
843 | 843 | ||
diff --git a/drivers/net/tulip/uli526x.c b/drivers/net/tulip/uli526x.c index c4c720e2d4c3..0b176be51eb3 100644 --- a/drivers/net/tulip/uli526x.c +++ b/drivers/net/tulip/uli526x.c | |||
@@ -222,7 +222,7 @@ static int uli526x_start_xmit(struct sk_buff *, struct net_device *); | |||
222 | static int uli526x_stop(struct net_device *); | 222 | static int uli526x_stop(struct net_device *); |
223 | static struct net_device_stats * uli526x_get_stats(struct net_device *); | 223 | static struct net_device_stats * uli526x_get_stats(struct net_device *); |
224 | static void uli526x_set_filter_mode(struct net_device *); | 224 | static void uli526x_set_filter_mode(struct net_device *); |
225 | static struct ethtool_ops netdev_ethtool_ops; | 225 | static const struct ethtool_ops netdev_ethtool_ops; |
226 | static u16 read_srom_word(long, int); | 226 | static u16 read_srom_word(long, int); |
227 | static irqreturn_t uli526x_interrupt(int, void *, struct pt_regs *); | 227 | static irqreturn_t uli526x_interrupt(int, void *, struct pt_regs *); |
228 | static void uli526x_descriptor_init(struct uli526x_board_info *, unsigned long); | 228 | static void uli526x_descriptor_init(struct uli526x_board_info *, unsigned long); |
@@ -985,7 +985,7 @@ static void uli526x_get_wol(struct net_device *dev, struct ethtool_wolinfo *wol) | |||
985 | wol->wolopts = 0; | 985 | wol->wolopts = 0; |
986 | } | 986 | } |
987 | 987 | ||
988 | static struct ethtool_ops netdev_ethtool_ops = { | 988 | static const struct ethtool_ops netdev_ethtool_ops = { |
989 | .get_drvinfo = netdev_get_drvinfo, | 989 | .get_drvinfo = netdev_get_drvinfo, |
990 | .get_settings = netdev_get_settings, | 990 | .get_settings = netdev_get_settings, |
991 | .get_link = netdev_get_link, | 991 | .get_link = netdev_get_link, |
diff --git a/drivers/net/tulip/winbond-840.c b/drivers/net/tulip/winbond-840.c index 264723b592cf..2fca1ee24f5a 100644 --- a/drivers/net/tulip/winbond-840.c +++ b/drivers/net/tulip/winbond-840.c | |||
@@ -339,7 +339,7 @@ static u32 __set_rx_mode(struct net_device *dev); | |||
339 | static void set_rx_mode(struct net_device *dev); | 339 | static void set_rx_mode(struct net_device *dev); |
340 | static struct net_device_stats *get_stats(struct net_device *dev); | 340 | static struct net_device_stats *get_stats(struct net_device *dev); |
341 | static int netdev_ioctl(struct net_device *dev, struct ifreq *rq, int cmd); | 341 | static int netdev_ioctl(struct net_device *dev, struct ifreq *rq, int cmd); |
342 | static struct ethtool_ops netdev_ethtool_ops; | 342 | static const struct ethtool_ops netdev_ethtool_ops; |
343 | static int netdev_close(struct net_device *dev); | 343 | static int netdev_close(struct net_device *dev); |
344 | 344 | ||
345 | 345 | ||
@@ -1447,7 +1447,7 @@ static void netdev_set_msglevel(struct net_device *dev, u32 value) | |||
1447 | debug = value; | 1447 | debug = value; |
1448 | } | 1448 | } |
1449 | 1449 | ||
1450 | static struct ethtool_ops netdev_ethtool_ops = { | 1450 | static const struct ethtool_ops netdev_ethtool_ops = { |
1451 | .get_drvinfo = netdev_get_drvinfo, | 1451 | .get_drvinfo = netdev_get_drvinfo, |
1452 | .get_settings = netdev_get_settings, | 1452 | .get_settings = netdev_get_settings, |
1453 | .set_settings = netdev_set_settings, | 1453 | .set_settings = netdev_set_settings, |
diff --git a/drivers/net/tulip/xircom_cb.c b/drivers/net/tulip/xircom_cb.c index cf43390d2c80..629eac645289 100644 --- a/drivers/net/tulip/xircom_cb.c +++ b/drivers/net/tulip/xircom_cb.c | |||
@@ -190,7 +190,7 @@ static void netdev_get_drvinfo(struct net_device *dev, | |||
190 | strcpy(info->bus_info, pci_name(private->pdev)); | 190 | strcpy(info->bus_info, pci_name(private->pdev)); |
191 | } | 191 | } |
192 | 192 | ||
193 | static struct ethtool_ops netdev_ethtool_ops = { | 193 | static const struct ethtool_ops netdev_ethtool_ops = { |
194 | .get_drvinfo = netdev_get_drvinfo, | 194 | .get_drvinfo = netdev_get_drvinfo, |
195 | }; | 195 | }; |
196 | 196 | ||
diff --git a/drivers/net/tulip/xircom_tulip_cb.c b/drivers/net/tulip/xircom_tulip_cb.c index d797b7b2e35f..312788caa4c6 100644 --- a/drivers/net/tulip/xircom_tulip_cb.c +++ b/drivers/net/tulip/xircom_tulip_cb.c | |||
@@ -334,7 +334,7 @@ static struct net_device_stats *xircom_get_stats(struct net_device *dev); | |||
334 | static int xircom_ioctl(struct net_device *dev, struct ifreq *rq, int cmd); | 334 | static int xircom_ioctl(struct net_device *dev, struct ifreq *rq, int cmd); |
335 | static void set_rx_mode(struct net_device *dev); | 335 | static void set_rx_mode(struct net_device *dev); |
336 | static void check_duplex(struct net_device *dev); | 336 | static void check_duplex(struct net_device *dev); |
337 | static struct ethtool_ops ops; | 337 | static const struct ethtool_ops ops; |
338 | 338 | ||
339 | 339 | ||
340 | /* The Xircom cards are picky about when certain bits in CSR6 can be | 340 | /* The Xircom cards are picky about when certain bits in CSR6 can be |
@@ -1430,7 +1430,7 @@ static void xircom_get_drvinfo(struct net_device *dev, struct ethtool_drvinfo *i | |||
1430 | strcpy(info->bus_info, pci_name(tp->pdev)); | 1430 | strcpy(info->bus_info, pci_name(tp->pdev)); |
1431 | } | 1431 | } |
1432 | 1432 | ||
1433 | static struct ethtool_ops ops = { | 1433 | static const struct ethtool_ops ops = { |
1434 | .get_settings = xircom_get_settings, | 1434 | .get_settings = xircom_get_settings, |
1435 | .set_settings = xircom_set_settings, | 1435 | .set_settings = xircom_set_settings, |
1436 | .get_drvinfo = xircom_get_drvinfo, | 1436 | .get_drvinfo = xircom_get_drvinfo, |
diff --git a/drivers/net/tun.c b/drivers/net/tun.c index 20db30891db0..de8da6dee1b0 100644 --- a/drivers/net/tun.c +++ b/drivers/net/tun.c | |||
@@ -69,7 +69,7 @@ static int debug; | |||
69 | /* Network device part of the driver */ | 69 | /* Network device part of the driver */ |
70 | 70 | ||
71 | static LIST_HEAD(tun_dev_list); | 71 | static LIST_HEAD(tun_dev_list); |
72 | static struct ethtool_ops tun_ethtool_ops; | 72 | static const struct ethtool_ops tun_ethtool_ops; |
73 | 73 | ||
74 | /* Net device open. */ | 74 | /* Net device open. */ |
75 | static int tun_net_open(struct net_device *dev) | 75 | static int tun_net_open(struct net_device *dev) |
@@ -856,7 +856,7 @@ static int tun_set_rx_csum(struct net_device *dev, u32 data) | |||
856 | return 0; | 856 | return 0; |
857 | } | 857 | } |
858 | 858 | ||
859 | static struct ethtool_ops tun_ethtool_ops = { | 859 | static const struct ethtool_ops tun_ethtool_ops = { |
860 | .get_settings = tun_get_settings, | 860 | .get_settings = tun_get_settings, |
861 | .get_drvinfo = tun_get_drvinfo, | 861 | .get_drvinfo = tun_get_drvinfo, |
862 | .get_msglevel = tun_get_msglevel, | 862 | .get_msglevel = tun_get_msglevel, |
diff --git a/drivers/net/typhoon.c b/drivers/net/typhoon.c index 03107310ea7b..2fb4f978ed54 100644 --- a/drivers/net/typhoon.c +++ b/drivers/net/typhoon.c | |||
@@ -1241,7 +1241,7 @@ typhoon_get_ringparam(struct net_device *dev, struct ethtool_ringparam *ering) | |||
1241 | ering->tx_pending = TXLO_ENTRIES - 1; | 1241 | ering->tx_pending = TXLO_ENTRIES - 1; |
1242 | } | 1242 | } |
1243 | 1243 | ||
1244 | static struct ethtool_ops typhoon_ethtool_ops = { | 1244 | static const struct ethtool_ops typhoon_ethtool_ops = { |
1245 | .get_settings = typhoon_get_settings, | 1245 | .get_settings = typhoon_get_settings, |
1246 | .set_settings = typhoon_set_settings, | 1246 | .set_settings = typhoon_set_settings, |
1247 | .get_drvinfo = typhoon_get_drvinfo, | 1247 | .get_drvinfo = typhoon_get_drvinfo, |
diff --git a/drivers/net/ucc_geth.c b/drivers/net/ucc_geth.c index 4e188f4289b4..700ebd7d1457 100644 --- a/drivers/net/ucc_geth.c +++ b/drivers/net/ucc_geth.c | |||
@@ -4129,20 +4129,7 @@ static int ucc_geth_close(struct net_device *dev) | |||
4129 | return 0; | 4129 | return 0; |
4130 | } | 4130 | } |
4131 | 4131 | ||
4132 | struct ethtool_ops ucc_geth_ethtool_ops = { | 4132 | const struct ethtool_ops ucc_geth_ethtool_ops = { }; |
4133 | .get_settings = NULL, | ||
4134 | .get_drvinfo = NULL, | ||
4135 | .get_regs_len = NULL, | ||
4136 | .get_regs = NULL, | ||
4137 | .get_link = NULL, | ||
4138 | .get_coalesce = NULL, | ||
4139 | .set_coalesce = NULL, | ||
4140 | .get_ringparam = NULL, | ||
4141 | .set_ringparam = NULL, | ||
4142 | .get_strings = NULL, | ||
4143 | .get_stats_count = NULL, | ||
4144 | .get_ethtool_stats = NULL, | ||
4145 | }; | ||
4146 | 4133 | ||
4147 | static int ucc_geth_probe(struct device *device) | 4134 | static int ucc_geth_probe(struct device *device) |
4148 | { | 4135 | { |
diff --git a/drivers/net/via-rhine.c b/drivers/net/via-rhine.c index f7bc44f2d96a..acd0a91a09c3 100644 --- a/drivers/net/via-rhine.c +++ b/drivers/net/via-rhine.c | |||
@@ -411,7 +411,7 @@ static void rhine_error(struct net_device *dev, int intr_status); | |||
411 | static void rhine_set_rx_mode(struct net_device *dev); | 411 | static void rhine_set_rx_mode(struct net_device *dev); |
412 | static struct net_device_stats *rhine_get_stats(struct net_device *dev); | 412 | static struct net_device_stats *rhine_get_stats(struct net_device *dev); |
413 | static int netdev_ioctl(struct net_device *dev, struct ifreq *rq, int cmd); | 413 | static int netdev_ioctl(struct net_device *dev, struct ifreq *rq, int cmd); |
414 | static struct ethtool_ops netdev_ethtool_ops; | 414 | static const struct ethtool_ops netdev_ethtool_ops; |
415 | static int rhine_close(struct net_device *dev); | 415 | static int rhine_close(struct net_device *dev); |
416 | static void rhine_shutdown (struct pci_dev *pdev); | 416 | static void rhine_shutdown (struct pci_dev *pdev); |
417 | 417 | ||
@@ -1796,7 +1796,7 @@ static int rhine_set_wol(struct net_device *dev, struct ethtool_wolinfo *wol) | |||
1796 | return 0; | 1796 | return 0; |
1797 | } | 1797 | } |
1798 | 1798 | ||
1799 | static struct ethtool_ops netdev_ethtool_ops = { | 1799 | static const struct ethtool_ops netdev_ethtool_ops = { |
1800 | .get_drvinfo = netdev_get_drvinfo, | 1800 | .get_drvinfo = netdev_get_drvinfo, |
1801 | .get_settings = netdev_get_settings, | 1801 | .get_settings = netdev_get_settings, |
1802 | .set_settings = netdev_set_settings, | 1802 | .set_settings = netdev_set_settings, |
diff --git a/drivers/net/via-velocity.c b/drivers/net/via-velocity.c index a0f7820cb54b..dd472b64e5a2 100644 --- a/drivers/net/via-velocity.c +++ b/drivers/net/via-velocity.c | |||
@@ -86,7 +86,7 @@ static int msglevel = MSG_LEVEL_INFO; | |||
86 | 86 | ||
87 | 87 | ||
88 | static int velocity_mii_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd); | 88 | static int velocity_mii_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd); |
89 | static struct ethtool_ops velocity_ethtool_ops; | 89 | static const struct ethtool_ops velocity_ethtool_ops; |
90 | 90 | ||
91 | /* | 91 | /* |
92 | Define module options | 92 | Define module options |
@@ -2971,7 +2971,7 @@ static void velocity_set_msglevel(struct net_device *dev, u32 value) | |||
2971 | msglevel = value; | 2971 | msglevel = value; |
2972 | } | 2972 | } |
2973 | 2973 | ||
2974 | static struct ethtool_ops velocity_ethtool_ops = { | 2974 | static const struct ethtool_ops velocity_ethtool_ops = { |
2975 | .get_settings = velocity_get_settings, | 2975 | .get_settings = velocity_get_settings, |
2976 | .set_settings = velocity_set_settings, | 2976 | .set_settings = velocity_set_settings, |
2977 | .get_drvinfo = velocity_get_drvinfo, | 2977 | .get_drvinfo = velocity_get_drvinfo, |
diff --git a/drivers/net/wireless/bcm43xx/bcm43xx_ethtool.c b/drivers/net/wireless/bcm43xx/bcm43xx_ethtool.c index e386dcc32e8c..c947025d655f 100644 --- a/drivers/net/wireless/bcm43xx/bcm43xx_ethtool.c +++ b/drivers/net/wireless/bcm43xx/bcm43xx_ethtool.c | |||
@@ -44,7 +44,7 @@ static void bcm43xx_get_drvinfo(struct net_device *dev, struct ethtool_drvinfo * | |||
44 | strncpy(info->bus_info, pci_name(bcm->pci_dev), ETHTOOL_BUSINFO_LEN); | 44 | strncpy(info->bus_info, pci_name(bcm->pci_dev), ETHTOOL_BUSINFO_LEN); |
45 | } | 45 | } |
46 | 46 | ||
47 | struct ethtool_ops bcm43xx_ethtool_ops = { | 47 | const struct ethtool_ops bcm43xx_ethtool_ops = { |
48 | .get_drvinfo = bcm43xx_get_drvinfo, | 48 | .get_drvinfo = bcm43xx_get_drvinfo, |
49 | .get_link = ethtool_op_get_link, | 49 | .get_link = ethtool_op_get_link, |
50 | }; | 50 | }; |
diff --git a/drivers/net/wireless/bcm43xx/bcm43xx_ethtool.h b/drivers/net/wireless/bcm43xx/bcm43xx_ethtool.h index 813704991f62..6f8d42d3cdf5 100644 --- a/drivers/net/wireless/bcm43xx/bcm43xx_ethtool.h +++ b/drivers/net/wireless/bcm43xx/bcm43xx_ethtool.h | |||
@@ -3,6 +3,6 @@ | |||
3 | 3 | ||
4 | #include <linux/ethtool.h> | 4 | #include <linux/ethtool.h> |
5 | 5 | ||
6 | extern struct ethtool_ops bcm43xx_ethtool_ops; | 6 | extern const struct ethtool_ops bcm43xx_ethtool_ops; |
7 | 7 | ||
8 | #endif /* BCM43xx_ETHTOOL_H_ */ | 8 | #endif /* BCM43xx_ETHTOOL_H_ */ |
diff --git a/drivers/net/wireless/hostap/hostap.h b/drivers/net/wireless/hostap/hostap.h index 5e63765219fe..e663518bd570 100644 --- a/drivers/net/wireless/hostap/hostap.h +++ b/drivers/net/wireless/hostap/hostap.h | |||
@@ -86,7 +86,7 @@ void hostap_info_process(local_info_t *local, struct sk_buff *skb); | |||
86 | /* hostap_ioctl.c */ | 86 | /* hostap_ioctl.c */ |
87 | 87 | ||
88 | extern const struct iw_handler_def hostap_iw_handler_def; | 88 | extern const struct iw_handler_def hostap_iw_handler_def; |
89 | extern struct ethtool_ops prism2_ethtool_ops; | 89 | extern const struct ethtool_ops prism2_ethtool_ops; |
90 | 90 | ||
91 | int hostap_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd); | 91 | int hostap_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd); |
92 | 92 | ||
diff --git a/drivers/net/wireless/hostap/hostap_ioctl.c b/drivers/net/wireless/hostap/hostap_ioctl.c index 8399de581893..7a4978516eac 100644 --- a/drivers/net/wireless/hostap/hostap_ioctl.c +++ b/drivers/net/wireless/hostap/hostap_ioctl.c | |||
@@ -3908,7 +3908,7 @@ static void prism2_get_drvinfo(struct net_device *dev, | |||
3908 | local->sta_fw_ver & 0xff); | 3908 | local->sta_fw_ver & 0xff); |
3909 | } | 3909 | } |
3910 | 3910 | ||
3911 | struct ethtool_ops prism2_ethtool_ops = { | 3911 | const struct ethtool_ops prism2_ethtool_ops = { |
3912 | .get_drvinfo = prism2_get_drvinfo | 3912 | .get_drvinfo = prism2_get_drvinfo |
3913 | }; | 3913 | }; |
3914 | 3914 | ||
diff --git a/drivers/net/wireless/ipw2100.c b/drivers/net/wireless/ipw2100.c index d2db8eb412c1..b4d81a04c895 100644 --- a/drivers/net/wireless/ipw2100.c +++ b/drivers/net/wireless/ipw2100.c | |||
@@ -5911,7 +5911,7 @@ static u32 ipw2100_ethtool_get_link(struct net_device *dev) | |||
5911 | return (priv->status & STATUS_ASSOCIATED) ? 1 : 0; | 5911 | return (priv->status & STATUS_ASSOCIATED) ? 1 : 0; |
5912 | } | 5912 | } |
5913 | 5913 | ||
5914 | static struct ethtool_ops ipw2100_ethtool_ops = { | 5914 | static const struct ethtool_ops ipw2100_ethtool_ops = { |
5915 | .get_link = ipw2100_ethtool_get_link, | 5915 | .get_link = ipw2100_ethtool_get_link, |
5916 | .get_drvinfo = ipw_ethtool_get_drvinfo, | 5916 | .get_drvinfo = ipw_ethtool_get_drvinfo, |
5917 | }; | 5917 | }; |
diff --git a/drivers/net/wireless/ipw2200.c b/drivers/net/wireless/ipw2200.c index f29ec0ebed2f..7358664e0908 100644 --- a/drivers/net/wireless/ipw2200.c +++ b/drivers/net/wireless/ipw2200.c | |||
@@ -10461,7 +10461,7 @@ static int ipw_ethtool_set_eeprom(struct net_device *dev, | |||
10461 | return 0; | 10461 | return 0; |
10462 | } | 10462 | } |
10463 | 10463 | ||
10464 | static struct ethtool_ops ipw_ethtool_ops = { | 10464 | static const struct ethtool_ops ipw_ethtool_ops = { |
10465 | .get_link = ipw_ethtool_get_link, | 10465 | .get_link = ipw_ethtool_get_link, |
10466 | .get_drvinfo = ipw_ethtool_get_drvinfo, | 10466 | .get_drvinfo = ipw_ethtool_get_drvinfo, |
10467 | .get_eeprom_len = ipw_ethtool_get_eeprom_len, | 10467 | .get_eeprom_len = ipw_ethtool_get_eeprom_len, |
diff --git a/drivers/net/wireless/orinoco.c b/drivers/net/wireless/orinoco.c index 1174ff53e025..1840b69e3cb5 100644 --- a/drivers/net/wireless/orinoco.c +++ b/drivers/net/wireless/orinoco.c | |||
@@ -165,7 +165,7 @@ static const u8 encaps_hdr[] = {0xaa, 0xaa, 0x03, 0x00, 0x00, 0x00}; | |||
165 | #define MAX_RID_LEN 1024 | 165 | #define MAX_RID_LEN 1024 |
166 | 166 | ||
167 | static const struct iw_handler_def orinoco_handler_def; | 167 | static const struct iw_handler_def orinoco_handler_def; |
168 | static struct ethtool_ops orinoco_ethtool_ops; | 168 | static const struct ethtool_ops orinoco_ethtool_ops; |
169 | 169 | ||
170 | /********************************************************************/ | 170 | /********************************************************************/ |
171 | /* Data tables */ | 171 | /* Data tables */ |
@@ -4293,7 +4293,7 @@ static void orinoco_get_drvinfo(struct net_device *dev, | |||
4293 | "PCMCIA %p", priv->hw.iobase); | 4293 | "PCMCIA %p", priv->hw.iobase); |
4294 | } | 4294 | } |
4295 | 4295 | ||
4296 | static struct ethtool_ops orinoco_ethtool_ops = { | 4296 | static const struct ethtool_ops orinoco_ethtool_ops = { |
4297 | .get_drvinfo = orinoco_get_drvinfo, | 4297 | .get_drvinfo = orinoco_get_drvinfo, |
4298 | .get_link = ethtool_op_get_link, | 4298 | .get_link = ethtool_op_get_link, |
4299 | }; | 4299 | }; |
diff --git a/drivers/net/wireless/ray_cs.c b/drivers/net/wireless/ray_cs.c index 8e112d139e29..4574290f971f 100644 --- a/drivers/net/wireless/ray_cs.c +++ b/drivers/net/wireless/ray_cs.c | |||
@@ -99,7 +99,7 @@ static int ray_dev_config(struct net_device *dev, struct ifmap *map); | |||
99 | static struct net_device_stats *ray_get_stats(struct net_device *dev); | 99 | static struct net_device_stats *ray_get_stats(struct net_device *dev); |
100 | static int ray_dev_init(struct net_device *dev); | 100 | static int ray_dev_init(struct net_device *dev); |
101 | 101 | ||
102 | static struct ethtool_ops netdev_ethtool_ops; | 102 | static const struct ethtool_ops netdev_ethtool_ops; |
103 | 103 | ||
104 | static int ray_open(struct net_device *dev); | 104 | static int ray_open(struct net_device *dev); |
105 | static int ray_dev_start_xmit(struct sk_buff *skb, struct net_device *dev); | 105 | static int ray_dev_start_xmit(struct sk_buff *skb, struct net_device *dev); |
@@ -1092,7 +1092,7 @@ static void netdev_get_drvinfo(struct net_device *dev, | |||
1092 | strcpy(info->driver, "ray_cs"); | 1092 | strcpy(info->driver, "ray_cs"); |
1093 | } | 1093 | } |
1094 | 1094 | ||
1095 | static struct ethtool_ops netdev_ethtool_ops = { | 1095 | static const struct ethtool_ops netdev_ethtool_ops = { |
1096 | .get_drvinfo = netdev_get_drvinfo, | 1096 | .get_drvinfo = netdev_get_drvinfo, |
1097 | }; | 1097 | }; |
1098 | 1098 | ||
diff --git a/drivers/net/wireless/wavelan_cs.c b/drivers/net/wireless/wavelan_cs.c index 561250f73fd3..0065f057bb1c 100644 --- a/drivers/net/wireless/wavelan_cs.c +++ b/drivers/net/wireless/wavelan_cs.c | |||
@@ -1837,7 +1837,7 @@ static void wl_get_drvinfo(struct net_device *dev, struct ethtool_drvinfo *info) | |||
1837 | strncpy(info->driver, "wavelan_cs", sizeof(info->driver)-1); | 1837 | strncpy(info->driver, "wavelan_cs", sizeof(info->driver)-1); |
1838 | } | 1838 | } |
1839 | 1839 | ||
1840 | static struct ethtool_ops ops = { | 1840 | static const struct ethtool_ops ops = { |
1841 | .get_drvinfo = wl_get_drvinfo | 1841 | .get_drvinfo = wl_get_drvinfo |
1842 | }; | 1842 | }; |
1843 | 1843 | ||
diff --git a/drivers/net/wireless/wl3501_cs.c b/drivers/net/wireless/wl3501_cs.c index c03e400facee..e0d294c12970 100644 --- a/drivers/net/wireless/wl3501_cs.c +++ b/drivers/net/wireless/wl3501_cs.c | |||
@@ -1464,7 +1464,7 @@ static void wl3501_get_drvinfo(struct net_device *dev, struct ethtool_drvinfo *i | |||
1464 | strlcpy(info->driver, wl3501_dev_info, sizeof(info->driver)); | 1464 | strlcpy(info->driver, wl3501_dev_info, sizeof(info->driver)); |
1465 | } | 1465 | } |
1466 | 1466 | ||
1467 | static struct ethtool_ops ops = { | 1467 | static const struct ethtool_ops ops = { |
1468 | .get_drvinfo = wl3501_get_drvinfo | 1468 | .get_drvinfo = wl3501_get_drvinfo |
1469 | }; | 1469 | }; |
1470 | 1470 | ||
diff --git a/drivers/net/yellowfin.c b/drivers/net/yellowfin.c index de11246b99ee..a4c4953f1365 100644 --- a/drivers/net/yellowfin.c +++ b/drivers/net/yellowfin.c | |||
@@ -356,7 +356,7 @@ static void yellowfin_error(struct net_device *dev, int intr_status); | |||
356 | static int yellowfin_close(struct net_device *dev); | 356 | static int yellowfin_close(struct net_device *dev); |
357 | static struct net_device_stats *yellowfin_get_stats(struct net_device *dev); | 357 | static struct net_device_stats *yellowfin_get_stats(struct net_device *dev); |
358 | static void set_rx_mode(struct net_device *dev); | 358 | static void set_rx_mode(struct net_device *dev); |
359 | static struct ethtool_ops ethtool_ops; | 359 | static const struct ethtool_ops ethtool_ops; |
360 | 360 | ||
361 | 361 | ||
362 | static int __devinit yellowfin_init_one(struct pci_dev *pdev, | 362 | static int __devinit yellowfin_init_one(struct pci_dev *pdev, |
@@ -1352,7 +1352,7 @@ static void yellowfin_get_drvinfo(struct net_device *dev, struct ethtool_drvinfo | |||
1352 | strcpy(info->bus_info, pci_name(np->pci_dev)); | 1352 | strcpy(info->bus_info, pci_name(np->pci_dev)); |
1353 | } | 1353 | } |
1354 | 1354 | ||
1355 | static struct ethtool_ops ethtool_ops = { | 1355 | static const struct ethtool_ops ethtool_ops = { |
1356 | .get_drvinfo = yellowfin_get_drvinfo | 1356 | .get_drvinfo = yellowfin_get_drvinfo |
1357 | }; | 1357 | }; |
1358 | 1358 | ||