]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
usbnet: apply usbnet_link_change
authorMing Lei <ming.lei@canonical.com>
Thu, 11 Apr 2013 04:40:39 +0000 (04:40 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 11 Apr 2013 19:57:17 +0000 (15:57 -0400)
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>
drivers/net/usb/usbnet.c

index 40e4237b0a3a13e29df690e9ef6fd02e7e220894..34e425264a7a20f841487c3a949deb3b7abbaf20 100644 (file)
@@ -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;