aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/mv643xx_eth.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/mv643xx_eth.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/mv643xx_eth.c')
-rw-r--r--drivers/net/mv643xx_eth.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/drivers/net/mv643xx_eth.c b/drivers/net/mv643xx_eth.c
index e379165d8375..b33d21f4efff 100644
--- a/drivers/net/mv643xx_eth.c
+++ b/drivers/net/mv643xx_eth.c
@@ -2674,9 +2674,14 @@ static void mv643xx_get_drvinfo(struct net_device *netdev,
2674 drvinfo->n_stats = MV643XX_STATS_LEN; 2674 drvinfo->n_stats = MV643XX_STATS_LEN;
2675} 2675}
2676 2676
2677static int mv643xx_get_stats_count(struct net_device *netdev) 2677static int mv643xx_get_sset_count(struct net_device *netdev, int sset)
2678{ 2678{
2679 return MV643XX_STATS_LEN; 2679 switch (sset) {
2680 case ETH_SS_STATS:
2681 return MV643XX_STATS_LEN;
2682 default:
2683 return -EOPNOTSUPP;
2684 }
2680} 2685}
2681 2686
2682static void mv643xx_get_ethtool_stats(struct net_device *netdev, 2687static void mv643xx_get_ethtool_stats(struct net_device *netdev,
@@ -2737,7 +2742,6 @@ static const struct ethtool_ops mv643xx_ethtool_ops = {
2737 .get_drvinfo = mv643xx_get_drvinfo, 2742 .get_drvinfo = mv643xx_get_drvinfo,
2738 .get_link = mv643xx_eth_get_link, 2743 .get_link = mv643xx_eth_get_link,
2739 .set_sg = ethtool_op_set_sg, 2744 .set_sg = ethtool_op_set_sg,
2740 .get_stats_count = mv643xx_get_stats_count,
2741 .get_ethtool_stats = mv643xx_get_ethtool_stats, 2745 .get_ethtool_stats = mv643xx_get_ethtool_stats,
2742 .get_strings = mv643xx_get_strings, 2746 .get_strings = mv643xx_get_strings,
2743 .nway_reset = mv643xx_eth_nway_restart, 2747 .nway_reset = mv643xx_eth_nway_restart,