aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/8139too.c
diff options
context:
space:
mode:
authorJeff Garzik <jeff@garzik.org>2007-10-03 21:07:32 -0400
committerDavid S. Miller <davem@sunset.davemloft.net>2007-10-10 19:51:45 -0400
commitb9f2c0440d806e01968c3ed4def930a43be248ad (patch)
treeb8e4668b0a4eab842fc33402e92b15f6c63cbc18 /drivers/net/8139too.c
parent753f492093da7a40141bfe083073400f518f4c68 (diff)
[netdrvr] Stop using legacy hooks ->self_test_count, ->get_stats_count
These have been superceded by the new ->get_sset_count() hook. Signed-off-by: Jeff Garzik <jeff@garzik.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/8139too.c')
-rw-r--r--drivers/net/8139too.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/drivers/net/8139too.c b/drivers/net/8139too.c
index d3088a786e26..973b684c11e3 100644
--- a/drivers/net/8139too.c
+++ b/drivers/net/8139too.c
@@ -2406,9 +2406,14 @@ static void rtl8139_get_regs(struct net_device *dev, struct ethtool_regs *regs,
2406} 2406}
2407#endif /* CONFIG_8139TOO_MMIO */ 2407#endif /* CONFIG_8139TOO_MMIO */
2408 2408
2409static int rtl8139_get_stats_count(struct net_device *dev) 2409static int rtl8139_get_sset_count(struct net_device *dev, int sset)
2410{ 2410{
2411 return RTL_NUM_STATS; 2411 switch (sset) {
2412 case ETH_SS_STATS:
2413 return RTL_NUM_STATS;
2414 default:
2415 return -EOPNOTSUPP;
2416 }
2412} 2417}
2413 2418
2414static void rtl8139_get_ethtool_stats(struct net_device *dev, struct ethtool_stats *stats, u64 *data) 2419static void rtl8139_get_ethtool_stats(struct net_device *dev, struct ethtool_stats *stats, u64 *data)
@@ -2439,7 +2444,7 @@ static const struct ethtool_ops rtl8139_ethtool_ops = {
2439 .get_wol = rtl8139_get_wol, 2444 .get_wol = rtl8139_get_wol,
2440 .set_wol = rtl8139_set_wol, 2445 .set_wol = rtl8139_set_wol,
2441 .get_strings = rtl8139_get_strings, 2446 .get_strings = rtl8139_get_strings,
2442 .get_stats_count = rtl8139_get_stats_count, 2447 .get_sset_count = rtl8139_get_sset_count,
2443 .get_ethtool_stats = rtl8139_get_ethtool_stats, 2448 .get_ethtool_stats = rtl8139_get_ethtool_stats,
2444}; 2449};
2445 2450