Deleted Added
full compact
28c28
< __FBSDID("$FreeBSD: head/sys/dev/acpica/acpi_powerres.c 128252 2004-04-14 17:58:19Z njl $");
---
> __FBSDID("$FreeBSD: head/sys/dev/acpica/acpi_powerres.c 130208 2004-06-07 21:39:15Z njl $");
329c329
< switch(state) {
---
> switch (state) {
361a362
> status = AE_BAD_PARAMETER;
376,377c377,382
< /* Turn off the resources listed in _PR0 to go to D3. */
< if (ACPI_FAILURE(AcpiGetHandle(consumer, "_PR0", &pr0_handle)))
---
> /*
> * Turn off the resources listed in _PR0 to go to D3. If there is
> * no _PR0 method, this object doesn't support ACPI power states.
> */
> if (ACPI_FAILURE(AcpiGetHandle(consumer, "_PR0", &pr0_handle))) {
> status = AE_NOT_FOUND;
378a384
> }
385,386c391
< reslist_object->Package.Count == 0) {
<
---
> reslist_object->Package.Count == 0)
388d392
< }
422c426
< while((pr = TAILQ_FIRST(&pc->ac_references)) != NULL) {
---
> while ((pr = TAILQ_FIRST(&pc->ac_references)) != NULL) {
480d483
< status = AE_BAD_PARAMETER;