aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/sky2.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/sky2.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/sky2.c')
-rw-r--r--drivers/net/sky2.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/drivers/net/sky2.c b/drivers/net/sky2.c
index a70bcbcf8a16..fe0e7560d236 100644
--- a/drivers/net/sky2.c
+++ b/drivers/net/sky2.c
@@ -3190,9 +3190,14 @@ static void sky2_set_msglevel(struct net_device *netdev, u32 value)
3190 sky2->msg_enable = value; 3190 sky2->msg_enable = value;
3191} 3191}
3192 3192
3193static int sky2_get_stats_count(struct net_device *dev) 3193static int sky2_get_sset_count(struct net_device *dev, int sset)
3194{ 3194{
3195 return ARRAY_SIZE(sky2_stats); 3195 switch (sset) {
3196 case ETH_SS_STATS:
3197 return ARRAY_SIZE(sky2_stats);
3198 default:
3199 return -EOPNOTSUPP;
3200 }
3196} 3201}
3197 3202
3198static void sky2_get_ethtool_stats(struct net_device *dev, 3203static void sky2_get_ethtool_stats(struct net_device *dev,
@@ -3723,7 +3728,7 @@ static const struct ethtool_ops sky2_ethtool_ops = {
3723 .get_pauseparam = sky2_get_pauseparam, 3728 .get_pauseparam = sky2_get_pauseparam,
3724 .set_pauseparam = sky2_set_pauseparam, 3729 .set_pauseparam = sky2_set_pauseparam,
3725 .phys_id = sky2_phys_id, 3730 .phys_id = sky2_phys_id,
3726 .get_stats_count = sky2_get_stats_count, 3731 .get_sset_count = sky2_get_sset_count,
3727 .get_ethtool_stats = sky2_get_ethtool_stats, 3732 .get_ethtool_stats = sky2_get_ethtool_stats,
3728}; 3733};
3729 3734