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);
dinfo = device_get_ivars(child);
PCIB_POWER_FOR_SLEEP(pcib, dev, &dstate) == 0)
PCIB_POWER_FOR_SLEEP(pcib, child, &dstate) == 0)
pci_set_powerstate(child, dstate);