diff options
author | stephen hemminger <shemminger@vyatta.com> | 2011-06-08 04:09:13 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-06-08 20:05:29 -0400 |
commit | 8ef207d63f8ecc0eae41cded066dd0e0ee170edf (patch) | |
tree | 3869def0b57b359fc750748d5531c379300d0d4b /drivers/net/usb/ipheth.c | |
parent | bff55273f98dea0ceb78e28eb69462fe5f72ef3d (diff) |
iph: use default get_stats
This driver keeps stats in net_device stats therefore it
does not need to define it's own get_stats hook.
Also, use standard format for net_device_ops (without &).
Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/usb/ipheth.c')
-rw-r--r-- | drivers/net/usb/ipheth.c | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/drivers/net/usb/ipheth.c b/drivers/net/usb/ipheth.c index 81126ff85e05..15772b1b6a91 100644 --- a/drivers/net/usb/ipheth.c +++ b/drivers/net/usb/ipheth.c | |||
@@ -409,12 +409,6 @@ static void ipheth_tx_timeout(struct net_device *net) | |||
409 | usb_unlink_urb(dev->tx_urb); | 409 | usb_unlink_urb(dev->tx_urb); |
410 | } | 410 | } |
411 | 411 | ||
412 | static struct net_device_stats *ipheth_stats(struct net_device *net) | ||
413 | { | ||
414 | struct ipheth_device *dev = netdev_priv(net); | ||
415 | return &dev->net->stats; | ||
416 | } | ||
417 | |||
418 | static u32 ipheth_ethtool_op_get_link(struct net_device *net) | 412 | static u32 ipheth_ethtool_op_get_link(struct net_device *net) |
419 | { | 413 | { |
420 | struct ipheth_device *dev = netdev_priv(net); | 414 | struct ipheth_device *dev = netdev_priv(net); |
@@ -426,11 +420,10 @@ static struct ethtool_ops ops = { | |||
426 | }; | 420 | }; |
427 | 421 | ||
428 | static const struct net_device_ops ipheth_netdev_ops = { | 422 | static const struct net_device_ops ipheth_netdev_ops = { |
429 | .ndo_open = &ipheth_open, | 423 | .ndo_open = ipheth_open, |
430 | .ndo_stop = &ipheth_close, | 424 | .ndo_stop = ipheth_close, |
431 | .ndo_start_xmit = &ipheth_tx, | 425 | .ndo_start_xmit = ipheth_tx, |
432 | .ndo_tx_timeout = &ipheth_tx_timeout, | 426 | .ndo_tx_timeout = ipheth_tx_timeout, |
433 | .ndo_get_stats = &ipheth_stats, | ||
434 | }; | 427 | }; |
435 | 428 | ||
436 | static int ipheth_probe(struct usb_interface *intf, | 429 | static int ipheth_probe(struct usb_interface *intf, |