Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 135399
b: refs/heads/master
c: d79f7ef
h: refs/heads/master
i:
  135397: f0415f6
  135395: 3d65330
  135391: 6a37b09
v: v3
  • Loading branch information
Stephen Hemminger authored and David S. Miller committed Mar 22, 2009
1 parent 8f2f3f0 commit 7d69fd2
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 9 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: b7e41e23055f20be334c404b15373c8deb2262b9
refs/heads/master: d79f7ef48b0897458a4df30085338aeb7fb85ffc
22 changes: 14 additions & 8 deletions trunk/drivers/net/usb/rtl8150.c
Original file line number Diff line number Diff line change
Expand Up @@ -891,6 +891,19 @@ static int rtl8150_ioctl(struct net_device *netdev, struct ifreq *rq, int cmd)
return res;
}

static const struct net_device_ops rtl8150_netdev_ops = {
.ndo_open = rtl8150_open,
.ndo_stop = rtl8150_close,
.ndo_do_ioctl = rtl8150_ioctl,
.ndo_start_xmit = rtl8150_start_xmit,
.ndo_tx_timeout = rtl8150_tx_timeout,
.ndo_set_multicast_list = rtl8150_set_multicast,
.ndo_set_mac_address = rtl8150_set_mac_address,

.ndo_change_mtu = eth_change_mtu,
.ndo_validate_addr = eth_validate_addr,
};

static int rtl8150_probe(struct usb_interface *intf,
const struct usb_device_id *id)
{
Expand All @@ -917,15 +930,8 @@ static int rtl8150_probe(struct usb_interface *intf,

dev->udev = udev;
dev->netdev = netdev;
netdev->open = rtl8150_open;
netdev->stop = rtl8150_close;
netdev->do_ioctl = rtl8150_ioctl;
netdev->netdev_ops = &rtl8150_netdev_ops;
netdev->watchdog_timeo = RTL8150_TX_TIMEOUT;
netdev->tx_timeout = rtl8150_tx_timeout;
netdev->hard_start_xmit = rtl8150_start_xmit;
netdev->set_multicast_list = rtl8150_set_multicast;
netdev->set_mac_address = rtl8150_set_mac_address;

SET_ETHTOOL_OPS(netdev, &ops);
dev->intr_interval = 100; /* 100ms */

Expand Down

0 comments on commit 7d69fd2

Please sign in to comment.