summaryrefslogtreecommitdiffstats
path: root/sys/dev/pci/pci.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/pci/pci.c')
-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 7528a0b..5fc6f23 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;
OpenPOWER on IntegriCloud