diff options
author | Oliver Neukum <oliver@neukum.org> | 2012-12-18 04:45:52 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-12-19 12:46:40 -0800 |
commit | 2dd7c8cf29769f6b66f26b501db2364640c2c9d0 (patch) | |
tree | 4b1e49cc9ff436092fbf086d6748a0cf3f3940c1 /drivers/net | |
parent | a1c088e01b71d90852b0df5a77cdae46bd0e0c05 (diff) | |
download | blackbird-op-linux-2dd7c8cf29769f6b66f26b501db2364640c2c9d0.tar.gz blackbird-op-linux-2dd7c8cf29769f6b66f26b501db2364640c2c9d0.zip |
usbnet: generic manage_power()
Centralise common code for manage_power() in usbnet
by making a generic simple implementation
Signed-off-by: Oliver Neukum <oneukum@suse.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/usb/usbnet.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/net/usb/usbnet.c b/drivers/net/usb/usbnet.c index 50ed7ab09c9f..3d4bf01641b4 100644 --- a/drivers/net/usb/usbnet.c +++ b/drivers/net/usb/usbnet.c @@ -1616,6 +1616,16 @@ void usbnet_device_suggests_idle(struct usbnet *dev) } EXPORT_SYMBOL(usbnet_device_suggests_idle); +/* + * For devices that can do without special commands + */ +int usbnet_manage_power(struct usbnet *dev, int on) +{ + dev->intf->needs_remote_wakeup = on; + return 0; +} +EXPORT_SYMBOL(usbnet_manage_power); + /*-------------------------------------------------------------------------*/ static int __usbnet_read_cmd(struct usbnet *dev, u8 cmd, u8 reqtype, u16 value, u16 index, void *data, u16 size) |