Skip to content

Commit

Permalink
usbnet: apply usbnet_link_change
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Ming Lei authored and David S. Miller committed Apr 11, 2013
1 parent 9ef2c44 commit 0162c55
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/usb/usbnet.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 0162c55

Please sign in to comment.