projects
/
platform
/
kernel
/
linux-amlogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c10b171
)
usbnet: sierra: apply usbnet_link_change
author
Ming Lei
<ming.lei@canonical.com>
Thu, 11 Apr 2013 04:40:38 +0000
(
04:40
+0000)
committer
David 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/sierra_net.c
patch
|
blob
|
history
diff --git
a/drivers/net/usb/sierra_net.c
b/drivers/net/usb/sierra_net.c
index
79ab243
..
a923d61
100644
(file)
--- 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)