Commit 0162c554 authored by Ming Lei's avatar Ming Lei Committed by David S. Miller

usbnet: apply usbnet_link_change

Use usbnet_link_change to handle link change centrally.
Signed-off-by: default avatarMing Lei <ming.lei@canonical.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 9ef2c441
...@@ -1521,7 +1521,7 @@ usbnet_probe (struct usb_interface *udev, const struct usb_device_id *prod) ...@@ -1521,7 +1521,7 @@ usbnet_probe (struct usb_interface *udev, const struct usb_device_id *prod)
netif_device_attach (net); netif_device_attach (net);
if (dev->driver_info->flags & FLAG_LINK_INTR) if (dev->driver_info->flags & FLAG_LINK_INTR)
netif_carrier_off(net); usbnet_link_change(dev, 0, 0);
return 0; return 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment