Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 135397
b: refs/heads/master
c: 19b8f8f
h: refs/heads/master
i:
  135395: 3d65330
v: v3
  • Loading branch information
Stephen Hemminger authored and David S. Miller committed Mar 22, 2009
1 parent 49a60d8 commit f0415f6
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: edc4ae08644045dc803dc519f96ff245cb80adad
refs/heads/master: 19b8f8f1a1cd9e31a1092a6841065471df8db00f
18 changes: 13 additions & 5 deletions trunk/drivers/net/usb/catc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*/
Expand All @@ -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;
Expand Down

0 comments on commit f0415f6

Please sign in to comment.