aboutsummaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorAdrian Chadd <adrian@FreeBSD.org>2014-11-11 17:14:11 +0000
committerAdrian Chadd <adrian@FreeBSD.org>2014-11-11 17:14:11 +0000
commit2da2ade0210e75b9a36256cc505d0b9bfc81a975 (patch)
tree0d5fcba643641731e8e5048e07cf36729ab5a791 /sys
parent1cb8f1cd72c9967f1b276d5ba0f706876cd243ee (diff)
Notes
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/acpica/acpi.c2
-rw-r--r--sys/dev/pci/pci.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/acpica/acpi.c b/sys/dev/acpica/acpi.c
index 71fbe3226b6a..e7389af50db7 100644
--- a/sys/dev/acpica/acpi.c
+++ b/sys/dev/acpica/acpi.c
@@ -710,7 +710,7 @@ acpi_set_power_children(device_t dev, int state)
child = devlist[i];
dstate = state;
if (device_is_attached(child) &&
- acpi_device_pwr_for_sleep(parent, dev, &dstate) == 0)
+ acpi_device_pwr_for_sleep(parent, child, &dstate) == 0)
acpi_set_powerstate(child, dstate);
}
free(devlist, M_TEMP);
diff --git a/sys/dev/pci/pci.c b/sys/dev/pci/pci.c
index 485f7289c964..d2ac111372ea 100644
--- a/sys/dev/pci/pci.c
+++ b/sys/dev/pci/pci.c
@@ -3651,7 +3651,7 @@ pci_set_power_child(device_t dev, device_t child, int state)
dinfo = device_get_ivars(child);
dstate = state;
if (device_is_attached(child) &&
- PCIB_POWER_FOR_SLEEP(pcib, dev, &dstate) == 0)
+ PCIB_POWER_FOR_SLEEP(pcib, child, &dstate) == 0)
pci_set_powerstate(child, dstate);
}