Commit 9ef2c441 authored by Ming Lei's avatar Ming Lei Committed by David S. Miller

usbnet: sierra: apply usbnet_link_change

Use usbnet_link_change to handle link change centrally.
Signed-off-by: default avatarMing Lei <ming.lei@canonical.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent c10b1710
......@@ -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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment