diff options
author | Oliver Neukum <oliver@neukum.org> | 2012-12-18 04:46:12 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-12-19 12:46:40 -0800 |
commit | a5e40708c495e387a2351d5e89b0cf7f19175a57 (patch) | |
tree | d8270d2442d153853dfe01b069ee8dddd29583cb /drivers/net/usb/cdc_ether.c | |
parent | 2dd7c8cf29769f6b66f26b501db2364640c2c9d0 (diff) | |
download | linux-a5e40708c495e387a2351d5e89b0cf7f19175a57.tar.gz linux-a5e40708c495e387a2351d5e89b0cf7f19175a57.tar.bz2 linux-a5e40708c495e387a2351d5e89b0cf7f19175a57.zip |
use generic usbnet_manage_power()
This covers the drivers that can use a primitive
implementation.
Signed-off-by: Oliver Neukum <oneukum@suse.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/usb/cdc_ether.c')
-rw-r--r-- | drivers/net/usb/cdc_ether.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/drivers/net/usb/cdc_ether.c b/drivers/net/usb/cdc_ether.c index a74f35f1403d..3f3d12d766e7 100644 --- a/drivers/net/usb/cdc_ether.c +++ b/drivers/net/usb/cdc_ether.c @@ -457,12 +457,6 @@ int usbnet_cdc_bind(struct usbnet *dev, struct usb_interface *intf) } EXPORT_SYMBOL_GPL(usbnet_cdc_bind); -static int cdc_manage_power(struct usbnet *dev, int on) -{ - dev->intf->needs_remote_wakeup = on; - return 0; -} - static const struct driver_info cdc_info = { .description = "CDC Ethernet Device", .flags = FLAG_ETHER | FLAG_POINTTOPOINT, @@ -470,7 +464,7 @@ static const struct driver_info cdc_info = { .bind = usbnet_cdc_bind, .unbind = usbnet_cdc_unbind, .status = usbnet_cdc_status, - .manage_power = cdc_manage_power, + .manage_power = usbnet_manage_power, }; static const struct driver_info wwan_info = { @@ -479,7 +473,7 @@ static const struct driver_info wwan_info = { .bind = usbnet_cdc_bind, .unbind = usbnet_cdc_unbind, .status = usbnet_cdc_status, - .manage_power = cdc_manage_power, + .manage_power = usbnet_manage_power, }; /*-------------------------------------------------------------------------*/ |