diff options
author | Stephen Hemminger <shemminger@vyatta.com> | 2009-03-20 19:35:49 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-03-21 19:40:58 -0700 |
commit | 19b8f8f1a1cd9e31a1092a6841065471df8db00f (patch) | |
tree | 443aa82cd6bec200af9f58a2c754cd76745fac12 /drivers/net | |
parent | edc4ae08644045dc803dc519f96ff245cb80adad (diff) | |
download | kernel_samsung_aries-19b8f8f1a1cd9e31a1092a6841065471df8db00f.zip kernel_samsung_aries-19b8f8f1a1cd9e31a1092a6841065471df8db00f.tar.gz kernel_samsung_aries-19b8f8f1a1cd9e31a1092a6841065471df8db00f.tar.bz2 |
usbnet: convert catc device to net_device_ops
Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/usb/catc.c | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/drivers/net/usb/catc.c b/drivers/net/usb/catc.c index 2fb4e36..b9dd425 100644 --- a/drivers/net/usb/catc.c +++ b/drivers/net/usb/catc.c @@ -743,6 +743,18 @@ static int catc_stop(struct net_device *netdev) return 0; } +static const struct net_device_ops catc_netdev_ops = { + .ndo_open = catc_open, + .ndo_stop = catc_stop, + .ndo_start_xmit = catc_start_xmit, + + .ndo_tx_timeout = catc_tx_timeout, + .ndo_set_multicast_list = catc_set_multicast_list, + .ndo_change_mtu = eth_change_mtu, + .ndo_set_mac_address = eth_mac_addr, + .ndo_validate_addr = eth_validate_addr, +}; + /* * USB probe, disconnect. */ @@ -767,12 +779,8 @@ static int catc_probe(struct usb_interface *intf, const struct usb_device_id *id catc = netdev_priv(netdev); - netdev->open = catc_open; - netdev->hard_start_xmit = catc_hard_start_xmit; - netdev->stop = catc_stop; - netdev->tx_timeout = catc_tx_timeout; + netdev->netdev_ops = &catc_netdev_ops; netdev->watchdog_timeo = TX_TIMEOUT; - netdev->set_multicast_list = catc_set_multicast_list; SET_ETHTOOL_OPS(netdev, &ops); catc->usbdev = usbdev; |