diff options
| author | Warner Losh <imp@FreeBSD.org> | 2004-04-26 02:11:38 +0000 |
|---|---|---|
| committer | Warner Losh <imp@FreeBSD.org> | 2004-04-26 02:11:38 +0000 |
| commit | 1c168bb710a99bb76eefbd47c06ccefcc8d4955b (patch) | |
| tree | b1c881aaf4b71793a68e49a59ef1161a931f7c4d | |
| parent | a606451bd20daa4ca2ee5de1c13a7a166e5d7648 (diff) | |
Notes
| -rw-r--r-- | sys/dev/acpica/acpi_pci.c | 2 | ||||
| -rw-r--r-- | sys/dev/pci/pci.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/acpica/acpi_pci.c b/sys/dev/acpica/acpi_pci.c index 736086d8fff2..969577f4c787 100644 --- a/sys/dev/acpica/acpi_pci.c +++ b/sys/dev/acpica/acpi_pci.c @@ -207,7 +207,7 @@ acpi_pci_set_powerstate_method(device_t dev, device_t child, int state) acpi_state, device_get_nameunit(child), AcpiFormatException(status)); } - if (state > old_state) + if (old_state > state) return (pci_set_powerstate_method(dev, child, state)); else return (0); diff --git a/sys/dev/pci/pci.c b/sys/dev/pci/pci.c index 41e5835c7047..cf84596381dd 100644 --- a/sys/dev/pci/pci.c +++ b/sys/dev/pci/pci.c @@ -495,7 +495,7 @@ pci_set_powerstate_method(device_t dev, device_t child, int state) /* * Dx -> Dx is a nop always. */ - if (pci_get_powerstate(dev) == state) + if (pci_get_powerstate(child) == state) return (0); if (cfg->pp.pp_cap != 0) { |
