Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 200873
b: refs/heads/master
c: 0dacca7
h: refs/heads/master
i:
  200871: 8dd1217
v: v3
  • Loading branch information
Ben Hutchings authored and David S. Miller committed Jul 3, 2010
1 parent 2bb1f43 commit f260744
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 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: 7b00ac51ffcda994ef0839001257be894cc6e5a8
refs/heads/master: 0dacca73a3ddefa6cb8a7e0282f938e01faa1a64
5 changes: 3 additions & 2 deletions trunk/drivers/net/usb/usbnet.c
Original file line number Diff line number Diff line change
Expand Up @@ -1293,6 +1293,9 @@ usbnet_probe (struct usb_interface *udev, const struct usb_device_id *prod)
goto out;
}

/* netdev_printk() needs this so do it as early as possible */
SET_NETDEV_DEV(net, &udev->dev);

dev = netdev_priv(net);
dev->udev = xdev;
dev->intf = udev;
Expand Down Expand Up @@ -1377,8 +1380,6 @@ usbnet_probe (struct usb_interface *udev, const struct usb_device_id *prod)
dev->rx_urb_size = dev->hard_mtu;
dev->maxpacket = usb_maxpacket (dev->udev, dev->out, 1);

SET_NETDEV_DEV(net, &udev->dev);

if ((dev->driver_info->flags & FLAG_WLAN) != 0)
SET_NETDEV_DEVTYPE(net, &wlan_type);
if ((dev->driver_info->flags & FLAG_WWAN) != 0)
Expand Down

0 comments on commit f260744

Please sign in to comment.