diff options
Diffstat (limited to 'drivers/net/pcnet32.c')
-rw-r--r-- | drivers/net/pcnet32.c | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/drivers/net/pcnet32.c b/drivers/net/pcnet32.c index 4840ddea71ac..36f92dd55508 100644 --- a/drivers/net/pcnet32.c +++ b/drivers/net/pcnet32.c | |||
@@ -847,9 +847,14 @@ static void pcnet32_get_strings(struct net_device *dev, u32 stringset, | |||
847 | memcpy(data, pcnet32_gstrings_test, sizeof(pcnet32_gstrings_test)); | 847 | memcpy(data, pcnet32_gstrings_test, sizeof(pcnet32_gstrings_test)); |
848 | } | 848 | } |
849 | 849 | ||
850 | static int pcnet32_self_test_count(struct net_device *dev) | 850 | static int pcnet32_get_sset_count(struct net_device *dev, int sset) |
851 | { | 851 | { |
852 | return PCNET32_TEST_LEN; | 852 | switch (sset) { |
853 | case ETH_SS_TEST: | ||
854 | return PCNET32_TEST_LEN; | ||
855 | default: | ||
856 | return -EOPNOTSUPP; | ||
857 | } | ||
853 | } | 858 | } |
854 | 859 | ||
855 | static void pcnet32_ethtool_test(struct net_device *dev, | 860 | static void pcnet32_ethtool_test(struct net_device *dev, |
@@ -1510,11 +1515,11 @@ static const struct ethtool_ops pcnet32_ethtool_ops = { | |||
1510 | .get_ringparam = pcnet32_get_ringparam, | 1515 | .get_ringparam = pcnet32_get_ringparam, |
1511 | .set_ringparam = pcnet32_set_ringparam, | 1516 | .set_ringparam = pcnet32_set_ringparam, |
1512 | .get_strings = pcnet32_get_strings, | 1517 | .get_strings = pcnet32_get_strings, |
1513 | .self_test_count = pcnet32_self_test_count, | ||
1514 | .self_test = pcnet32_ethtool_test, | 1518 | .self_test = pcnet32_ethtool_test, |
1515 | .phys_id = pcnet32_phys_id, | 1519 | .phys_id = pcnet32_phys_id, |
1516 | .get_regs_len = pcnet32_get_regs_len, | 1520 | .get_regs_len = pcnet32_get_regs_len, |
1517 | .get_regs = pcnet32_get_regs, | 1521 | .get_regs = pcnet32_get_regs, |
1522 | .get_sset_count = pcnet32_get_sset_count, | ||
1518 | }; | 1523 | }; |
1519 | 1524 | ||
1520 | /* only probes for non-PCI devices, the rest are handled by | 1525 | /* only probes for non-PCI devices, the rest are handled by |