diff options
author | Nate Lawson <njl@FreeBSD.org> | 2004-06-30 16:08:03 +0000 |
---|---|---|
committer | Nate Lawson <njl@FreeBSD.org> | 2004-06-30 16:08:03 +0000 |
commit | d4b9ff9179ea365cb8a8891d5935ed27ce638695 (patch) | |
tree | 80d3f628b9b2fa8818b9783ce1b105fab138596d /sys/dev/acpica/acpi_button.c | |
parent | d3b9d3d1d70b3623452ba4b461dff9b13bfcb8a6 (diff) | |
download | src-d4b9ff9179ea365cb8a8891d5935ed27ce638695.tar.gz src-d4b9ff9179ea365cb8a8891d5935ed27ce638695.zip |
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).
Notes
Notes:
svn path=/head/; revision=131341
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 17fe84a19bc6..9031f3f2354e 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); } |