diff options
author | njl <njl@FreeBSD.org> | 2004-06-30 16:08:03 +0000 |
---|---|---|
committer | njl <njl@FreeBSD.org> | 2004-06-30 16:08:03 +0000 |
commit | 5fc49780bffd25c0809c5fbd7cb5fec02f20c13e (patch) | |
tree | 80d3f628b9b2fa8818b9783ce1b105fab138596d /sys/dev/acpica/acpi_button.c | |
parent | d42a9ac2bf4015346c9d448474b76154f12cd2f7 (diff) | |
download | FreeBSD-src-5fc49780bffd25c0809c5fbd7cb5fec02f20c13e.zip FreeBSD-src-5fc49780bffd25c0809c5fbd7cb5fec02f20c13e.tar.gz |
Move flags into a private ivar so it can't collide with device flags.
Unify the code to disable GPEs with the enable code. Shutdown is handled
the same way. ACPI now does all wake/sleep prep for child devices so
now they no longer need to call external functions in the suspend/resume
path. Add the flags to non-ACPI busses (i.e., pci).
Diffstat (limited to 'sys/dev/acpica/acpi_button.c')
-rw-r--r-- | sys/dev/acpica/acpi_button.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/sys/dev/acpica/acpi_button.c b/sys/dev/acpica/acpi_button.c index 17fe84a..9031f3f 100644 --- a/sys/dev/acpica/acpi_button.c +++ b/sys/dev/acpica/acpi_button.c @@ -170,17 +170,12 @@ acpi_button_attach(device_t dev) static int acpi_button_suspend(device_t dev) { - struct acpi_softc *acpi_sc; - - acpi_sc = acpi_device_get_parent_softc(dev); - acpi_wake_sleep_prep(dev, acpi_sc->acpi_sstate); return (0); } static int acpi_button_resume(device_t dev) { - acpi_wake_run_prep(dev); return (0); } |