mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-29 23:53:32 +00:00
usbnet: apply usbnet_link_change
Use usbnet_link_change to handle link change centrally. Signed-off-by: Ming Lei <ming.lei@canonical.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
9ef2c44160
commit
0162c55463
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue