diff options
Diffstat (limited to 'drivers/usb/net/usbnet.c')
-rw-r--r-- | drivers/usb/net/usbnet.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/drivers/usb/net/usbnet.c b/drivers/usb/net/usbnet.c index de69b183bd2f..f9cd42d058b0 100644 --- a/drivers/usb/net/usbnet.c +++ b/drivers/usb/net/usbnet.c | |||
@@ -203,7 +203,6 @@ void usbnet_skb_return (struct usbnet *dev, struct sk_buff *skb) | |||
203 | { | 203 | { |
204 | int status; | 204 | int status; |
205 | 205 | ||
206 | skb->dev = dev->net; | ||
207 | skb->protocol = eth_type_trans (skb, dev->net); | 206 | skb->protocol = eth_type_trans (skb, dev->net); |
208 | dev->stats.rx_packets++; | 207 | dev->stats.rx_packets++; |
209 | dev->stats.rx_bytes += skb->len; | 208 | dev->stats.rx_bytes += skb->len; |
@@ -735,8 +734,7 @@ void usbnet_get_drvinfo (struct net_device *net, struct ethtool_drvinfo *info) | |||
735 | { | 734 | { |
736 | struct usbnet *dev = netdev_priv(net); | 735 | struct usbnet *dev = netdev_priv(net); |
737 | 736 | ||
738 | /* REVISIT don't always return "usbnet" */ | 737 | strncpy (info->driver, dev->driver_name, sizeof info->driver); |
739 | strncpy (info->driver, driver_name, sizeof info->driver); | ||
740 | strncpy (info->version, DRIVER_VERSION, sizeof info->version); | 738 | strncpy (info->version, DRIVER_VERSION, sizeof info->version); |
741 | strncpy (info->fw_version, dev->driver_info->description, | 739 | strncpy (info->fw_version, dev->driver_info->description, |
742 | sizeof info->fw_version); | 740 | sizeof info->fw_version); |
@@ -1116,10 +1114,12 @@ usbnet_probe (struct usb_interface *udev, const struct usb_device_id *prod) | |||
1116 | struct driver_info *info; | 1114 | struct driver_info *info; |
1117 | struct usb_device *xdev; | 1115 | struct usb_device *xdev; |
1118 | int status; | 1116 | int status; |
1117 | const char *name; | ||
1119 | 1118 | ||
1119 | name = udev->dev.driver->name; | ||
1120 | info = (struct driver_info *) prod->driver_info; | 1120 | info = (struct driver_info *) prod->driver_info; |
1121 | if (!info) { | 1121 | if (!info) { |
1122 | dev_dbg (&udev->dev, "blacklisted by %s\n", driver_name); | 1122 | dev_dbg (&udev->dev, "blacklisted by %s\n", name); |
1123 | return -ENODEV; | 1123 | return -ENODEV; |
1124 | } | 1124 | } |
1125 | xdev = interface_to_usbdev (udev); | 1125 | xdev = interface_to_usbdev (udev); |
@@ -1139,6 +1139,7 @@ usbnet_probe (struct usb_interface *udev, const struct usb_device_id *prod) | |||
1139 | dev = netdev_priv(net); | 1139 | dev = netdev_priv(net); |
1140 | dev->udev = xdev; | 1140 | dev->udev = xdev; |
1141 | dev->driver_info = info; | 1141 | dev->driver_info = info; |
1142 | dev->driver_name = name; | ||
1142 | dev->msg_enable = netif_msg_init (msg_level, NETIF_MSG_DRV | 1143 | dev->msg_enable = netif_msg_init (msg_level, NETIF_MSG_DRV |
1143 | | NETIF_MSG_PROBE | NETIF_MSG_LINK); | 1144 | | NETIF_MSG_PROBE | NETIF_MSG_LINK); |
1144 | skb_queue_head_init (&dev->rxq); | 1145 | skb_queue_head_init (&dev->rxq); |