diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/3c59x.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/drivers/net/3c59x.c b/drivers/net/3c59x.c index 8d3893da06f5..862f47223fdc 100644 --- a/drivers/net/3c59x.c +++ b/drivers/net/3c59x.c | |||
@@ -3118,7 +3118,13 @@ static void acpi_set_WOL(struct net_device *dev) | |||
3118 | iowrite16(SetRxFilter|RxStation|RxMulticast|RxBroadcast, ioaddr + EL3_CMD); | 3118 | iowrite16(SetRxFilter|RxStation|RxMulticast|RxBroadcast, ioaddr + EL3_CMD); |
3119 | iowrite16(RxEnable, ioaddr + EL3_CMD); | 3119 | iowrite16(RxEnable, ioaddr + EL3_CMD); |
3120 | 3120 | ||
3121 | pci_enable_wake(VORTEX_PCI(vp), 0, 1); | 3121 | if (pci_enable_wake(VORTEX_PCI(vp), PCI_D3hot, 1)) { |
3122 | printk(KERN_INFO "%s: WOL not supported.\n", | ||
3123 | pci_name(VORTEX_PCI(vp))); | ||
3124 | |||
3125 | vp->enable_wol = 0; | ||
3126 | return; | ||
3127 | } | ||
3122 | 3128 | ||
3123 | /* Change the power state to D3; RxEnable doesn't take effect. */ | 3129 | /* Change the power state to D3; RxEnable doesn't take effect. */ |
3124 | pci_set_power_state(VORTEX_PCI(vp), PCI_D3hot); | 3130 | pci_set_power_state(VORTEX_PCI(vp), PCI_D3hot); |