diff options
-rw-r--r-- | sys/dev/acpica/acpi.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/sys/dev/acpica/acpi.c b/sys/dev/acpica/acpi.c index 4bd564a..dba4edd 100644 --- a/sys/dev/acpica/acpi.c +++ b/sys/dev/acpica/acpi.c @@ -2197,8 +2197,12 @@ acpi_ReqSleepState(struct acpi_softc *sc, int state) /* If devd(8) is not running, immediately enter the sleep state. */ if (devctl_process_running() == FALSE) { - ACPI_UNLOCK(acpi); - return (ACPI_FAILURE(acpi_EnterSleepState(sc, sc->acpi_next_sstate))); + ACPI_UNLOCK(acpi); + if (ACPI_SUCCESS(acpi_EnterSleepState(sc, sc->acpi_next_sstate))) { + return (0); + } else { + return (ENXIO); + } } /* Now notify devd(8) also. */ |