From: Ming Lei Date: Thu, 11 Apr 2013 04:40:39 +0000 (+0000) Subject: usbnet: apply usbnet_link_change X-Git-Tag: firefly_0821_release~3680^2~548^2~165 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=0162c55463057196346e7b53f83b5b53a47a32cc;p=firefly-linux-kernel-4.4.55.git usbnet: apply usbnet_link_change Use usbnet_link_change to handle link change centrally. Signed-off-by: Ming Lei Signed-off-by: David S. Miller --- diff --git a/drivers/net/usb/usbnet.c b/drivers/net/usb/usbnet.c index 40e4237b0a3a..34e425264a7a 100644 --- a/drivers/net/usb/usbnet.c +++ b/drivers/net/usb/usbnet.c @@ -1521,7 +1521,7 @@ usbnet_probe (struct usb_interface *udev, const struct usb_device_id *prod) netif_device_attach (net); if (dev->driver_info->flags & FLAG_LINK_INTR) - netif_carrier_off(net); + usbnet_link_change(dev, 0, 0); return 0;