summaryrefslogtreecommitdiff
path: root/sys/dev/pci
diff options
context:
space:
mode:
authorWarner Losh <imp@FreeBSD.org>2004-12-31 23:59:24 +0000
committerWarner Losh <imp@FreeBSD.org>2004-12-31 23:59:24 +0000
commit029060995302f73a91c4cc5a0da5b9b7e98a45c6 (patch)
treee0ad56732e06342c430ad16c8fb864e7b650f221 /sys/dev/pci
parentdb966c8b2b34c6b05a948f3cfe4541f2bdb956a3 (diff)
Notes
Diffstat (limited to 'sys/dev/pci')
-rw-r--r--sys/dev/pci/pci.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pci/pci.c b/sys/dev/pci/pci.c
index 7528a0be0fa1..5fc6f233b76a 100644
--- a/sys/dev/pci/pci.c
+++ b/sys/dev/pci/pci.c
@@ -525,9 +525,9 @@ pci_set_powerstate_method(device_t dev, device_t child, int state)
* this function can be called from contexts where we cannot sleep.
*/
highest = (oldstate > state) ? oldstate : state;
- if (highest == PCI_POWER_STATE_D3)
+ if (highest == PCI_POWERSTATE_D3)
delay = 10000;
- else if (highest == PCI_POWER_STATE_D2)
+ else if (highest == PCI_POWERSTATE_D2)
delay = 200;
else
delay = 0;