diff options
author | Ming Lei <ming.lei@canonical.com> | 2013-04-11 04:40:38 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-04-11 15:57:17 -0400 |
commit | 9ef2c441607152c124802b8cb6022119e4bdc20e (patch) | |
tree | d5dd1c5c6d1e917bcf49ffde74729a9fbe081462 | |
parent | c10b1710e292729e6cab474a615b77c0d99da236 (diff) |
usbnet: sierra: 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>
-rw-r--r-- | drivers/net/usb/sierra_net.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/usb/sierra_net.c b/drivers/net/usb/sierra_net.c index 79ab2435d9d..a923d61c6fc 100644 --- a/drivers/net/usb/sierra_net.c +++ b/drivers/net/usb/sierra_net.c @@ -413,11 +413,10 @@ static void sierra_net_handle_lsi(struct usbnet *dev, char *data, if (link_up) { sierra_net_set_ctx_index(priv, hh->msgspecific.byte); priv->link_up = 1; - netif_carrier_on(dev->net); } else { priv->link_up = 0; - netif_carrier_off(dev->net); } + usbnet_link_change(dev, link_up, 0); } static void sierra_net_dosync(struct usbnet *dev) |