View | Details | Raw Unified | Return to bug 194884 | Differences between
and this patch

Collapse All | Expand All

(-)sys/dev/acpica/acpi.c (-1 / +1 lines)
Lines 710-716 acpi_set_power_children(device_t dev, int state) Link Here
710
		child = devlist[i];
710
		child = devlist[i];
711
		dstate = state;
711
		dstate = state;
712
		if (device_is_attached(child) &&
712
		if (device_is_attached(child) &&
713
		    acpi_device_pwr_for_sleep(parent, dev, &dstate) == 0)
713
		    acpi_device_pwr_for_sleep(parent, child, &dstate) == 0)
714
			acpi_set_powerstate(child, dstate);
714
			acpi_set_powerstate(child, dstate);
715
	}
715
	}
716
	free(devlist, M_TEMP);
716
	free(devlist, M_TEMP);
(-)sys/dev/pci/pci.c (-1 / +1 lines)
Lines 3651-3657 pci_set_power_child(device_t dev, device_t child, Link Here
3651
	dinfo = device_get_ivars(child);
3651
	dinfo = device_get_ivars(child);
3652
	dstate = state;
3652
	dstate = state;
3653
	if (device_is_attached(child) &&
3653
	if (device_is_attached(child) &&
3654
	    PCIB_POWER_FOR_SLEEP(pcib, dev, &dstate) == 0)
3654
	    PCIB_POWER_FOR_SLEEP(pcib, child, &dstate) == 0)
3655
		pci_set_powerstate(child, dstate);
3655
		pci_set_powerstate(child, dstate);
3656
}
3656
}
3657
3657

Return to bug 194884