Deleted Added
full compact
30c30
< __FBSDID("$FreeBSD: head/sys/dev/acpica/acpi_pci.c 129829 2004-05-29 04:32:50Z njl $");
---
> __FBSDID("$FreeBSD: head/sys/dev/acpica/acpi_pci.c 130208 2004-06-07 21:39:15Z njl $");
196,204c196,201
< h = acpi_get_handle(child);
< if (h != NULL) {
< status = acpi_pwr_switch_consumer(h, acpi_state);
< if (ACPI_FAILURE(status))
< device_printf(dev,
< "Failed to set ACPI power state D%d on %s: %s\n",
< acpi_state, device_get_nameunit(child),
< AcpiFormatException(status));
< }
---
> h = acpi_get_handle(dev);
> status = acpi_pwr_switch_consumer(h, acpi_state);
> if (ACPI_FAILURE(status) && status != AE_NOT_FOUND)
> device_printf(dev,
> "Failed to set ACPI power state D%d on %s: %s\n",
> acpi_state, acpi_name(h), AcpiFormatException(status));