aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/b44.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/b44.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/b44.c')
-rw-r--r--drivers/net/b44.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/drivers/net/b44.c b/drivers/net/b44.c
index e90ba217d244..3d247f3f4a3c 100644
--- a/drivers/net/b44.c
+++ b/drivers/net/b44.c
@@ -1962,9 +1962,14 @@ static void b44_get_strings(struct net_device *dev, u32 stringset, u8 *data)
1962 } 1962 }
1963} 1963}
1964 1964
1965static int b44_get_stats_count(struct net_device *dev) 1965static int b44_get_sset_count(struct net_device *dev, int sset)
1966{ 1966{
1967 return ARRAY_SIZE(b44_gstrings); 1967 switch (sset) {
1968 case ETH_SS_STATS:
1969 return ARRAY_SIZE(b44_gstrings);
1970 default:
1971 return -EOPNOTSUPP;
1972 }
1968} 1973}
1969 1974
1970static void b44_get_ethtool_stats(struct net_device *dev, 1975static void b44_get_ethtool_stats(struct net_device *dev,
@@ -2025,7 +2030,7 @@ static const struct ethtool_ops b44_ethtool_ops = {
2025 .get_msglevel = b44_get_msglevel, 2030 .get_msglevel = b44_get_msglevel,
2026 .set_msglevel = b44_set_msglevel, 2031 .set_msglevel = b44_set_msglevel,
2027 .get_strings = b44_get_strings, 2032 .get_strings = b44_get_strings,
2028 .get_stats_count = b44_get_stats_count, 2033 .get_sset_count = b44_get_sset_count,
2029 .get_ethtool_stats = b44_get_ethtool_stats, 2034 .get_ethtool_stats = b44_get_ethtool_stats,
2030}; 2035};
2031 2036