]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
e1000: Use device_set_wakeup_enable
author\"Rafael J. Wysocki\ <rjw@sisk.pl>
Fri, 7 Nov 2008 20:30:19 +0000 (20:30 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sun, 16 Nov 2008 09:35:56 +0000 (01:35 -0800)
commitde1264896c8012a261c1cba17e6a61199c276ad3
tree9a91175b435d83f597f8ca784130ec54d42ba4a7
parent6ff68026f4757d68461b7fbeca5c944e1f5f8b44
e1000: Use device_set_wakeup_enable

Since dev->power.should_wakeup bit is used by the PCI core to
decide whether the device should wake up the system from sleep
states, set/unset this bit whenever WOL is enabled/disabled using
e1000_set_wol().  Accordingly, use device_can_wakeup() for checking
if wake-up is supported by the device.

Signed-off-by: "Rafael J. Wysocki" <rjw@sisk.pl>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/e1000/e1000_ethtool.c
drivers/net/e1000/e1000_main.c