]> git.baikalelectronics.ru Git - kernel.git/commit
usbnet: pegasus: set wakeup enable in set_wol
authorMing Lei <ming.lei@canonical.com>
Sat, 19 Jan 2013 01:32:01 +0000 (01:32 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 21 Jan 2013 04:11:57 +0000 (23:11 -0500)
commit251daedcdcc0580a07f6a373f9fc6a8f7216a5f6
tree2725ff67837bcac30cefdf3e7e763d52eda62d41
parentab36b083bbb784116adc49fa5e19456209d9d7c9
usbnet: pegasus: set wakeup enable in set_wol

This patch calls device_set_wakeup_enable() inside set_wol
callback, so that turning on WOL from user mode utility
can make the 'wakeup' of pegasus device to be enabled, then
remote wakeup may be enabled before putting into sleep.

Cc: Sarah Sharp <sarah.a.sharp@linux.intel.com>
Cc: Petko Manolov <petkan@users.sourceforge.net>
Signed-off-by: Ming Lei <ming.lei@canonical.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/pegasus.c