summaryrefslogtreecommitdiffstats
path: root/drivers/net/usb
diff options
context:
space:
mode:
authorMing Lei <ming.lei@canonical.com>2013-04-11 04:40:36 +0000
committerDavid S. Miller <davem@davemloft.net>2013-04-11 15:57:17 -0400
commit418fc57abf5bfc35858b40467e2a6a50fcd34c01 (patch)
treee7e5c1cf794c1588035be0275edb1e02d1e3587f /drivers/net/usb
parent7a97856e27074a5aa16113203f4c4088f18fedc5 (diff)
downloadblackbird-op-linux-418fc57abf5bfc35858b40467e2a6a50fcd34c01.tar.gz
blackbird-op-linux-418fc57abf5bfc35858b40467e2a6a50fcd34c01.zip
usbnet: cdc-ether: 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>
Diffstat (limited to 'drivers/net/usb')
-rw-r--r--drivers/net/usb/cdc_ether.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/net/usb/cdc_ether.c b/drivers/net/usb/cdc_ether.c
index 57136dc1b887..e965806b1e06 100644
--- a/drivers/net/usb/cdc_ether.c
+++ b/drivers/net/usb/cdc_ether.c
@@ -406,10 +406,7 @@ void usbnet_cdc_status(struct usbnet *dev, struct urb *urb)
case USB_CDC_NOTIFY_NETWORK_CONNECTION:
netif_dbg(dev, timer, dev->net, "CDC: carrier %s\n",
event->wValue ? "on" : "off");
- if (event->wValue)
- netif_carrier_on(dev->net);
- else
- netif_carrier_off(dev->net);
+ usbnet_link_change(dev, event->wValue, 0);
break;
case USB_CDC_NOTIFY_SPEED_CHANGE: /* tx/rx rates */
netif_dbg(dev, timer, dev->net, "CDC: speed change (len %d)\n",
OpenPOWER on IntegriCloud