summaryrefslogtreecommitdiffstats
path: root/sys/dev/acpica
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2004-04-26 02:11:38 +0000
committerimp <imp@FreeBSD.org>2004-04-26 02:11:38 +0000
commit312f49a25bec22bb547a39de59b639f0967847a5 (patch)
treeb1c881aaf4b71793a68e49a59ef1161a931f7c4d /sys/dev/acpica
parent8d22d067c8d1a824630241efa9da415f423d4670 (diff)
downloadFreeBSD-src-312f49a25bec22bb547a39de59b639f0967847a5.zip
FreeBSD-src-312f49a25bec22bb547a39de59b639f0967847a5.tar.gz
Fix two typos from PR: 65694
1) In pci.c, we need to check the child device's state, not the parent device's state. 2) In acpi_pci.c, we have to run the power state change after the acpi method when the old_state is > new state, not the other way around. Submitted by: Dmitry Remesov PR: 65694
Diffstat (limited to 'sys/dev/acpica')
-rw-r--r--sys/dev/acpica/acpi_pci.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/acpica/acpi_pci.c b/sys/dev/acpica/acpi_pci.c
index 736086d..969577f 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);
OpenPOWER on IntegriCloud