aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/b44.c
diff options
context:
space:
mode:
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