aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTakanori Watanabe <takawata@FreeBSD.org>2007-10-25 20:02:38 +0000
committerTakanori Watanabe <takawata@FreeBSD.org>2007-10-25 20:02:38 +0000
commit68fb6c48583442593812cfc399eaa659cf5b8ef7 (patch)
tree506fbac4fc2be170a9f96b266445464e1a24a4eb
parent26e4ee3b411af9b6a1cd02eb1e7c5929f9adaca6 (diff)
Notes
-rw-r--r--sys/dev/acpica/acpi_ec.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/sys/dev/acpica/acpi_ec.c b/sys/dev/acpica/acpi_ec.c
index 5f0a021de0284..86fb4b9457867 100644
--- a/sys/dev/acpica/acpi_ec.c
+++ b/sys/dev/acpica/acpi_ec.c
@@ -468,7 +468,7 @@ acpi_ec_attach(device_t dev)
sc->ec_gpebit = params->gpe_bit;
sc->ec_gpehandle = params->gpe_handle;
sc->ec_uid = params->uid;
- sc->ec_suspending = 0;
+ sc->ec_suspending = FALSE;
free(params, M_TEMP);
/* Attach bus resources for data and command/status ports. */
@@ -553,22 +553,19 @@ acpi_ec_suspend(device_t dev)
{
struct acpi_ec_softc *sc;
- /* Disable the GPE so we don't get EC events during shutdown. */
sc = device_get_softc(dev);
- sc->ec_suspending = 1;
+ sc->ec_suspending = TRUE;
return (0);
}
-
static int
acpi_ec_resume(device_t dev)
{
struct acpi_ec_softc *sc;
- /* Disable the GPE so we don't get EC events during shutdown. */
sc = device_get_softc(dev);
- sc->ec_suspending = 0;
+ sc->ec_suspending = FALSE;
return (0);
}