sky2: Fix WOL regression
authorRafael J. Wysocki <rjw@sisk.pl>
Mon, 13 Oct 2008 03:59:48 +0000 (20:59 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 13 Oct 2008 03:59:48 +0000 (20:59 -0700)
commit9d731d77c9794bb0a264f58d35949a1ab6dcc41c
tree748f106a5c8858c2959dc1683edc3a90ae3bb284
parent738e1e694bf6d9e965ba0ce2667a1bec5780a172
sky2: Fix WOL regression

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
sky2_set_wol().

Remove an open-coded reference to the standard PCI PM registers that
is not used any more.

Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/sky2.c