aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNate Lawson <njl@FreeBSD.org>2004-05-25 16:17:39 +0000
committerNate Lawson <njl@FreeBSD.org>2004-05-25 16:17:39 +0000
commit841caa96b484484c5adaec08d1436315be26923b (patch)
tree0519fb1e371aa50725df8a9e8c075430984ba1f1
parentb5ef991561f013c659c51c3f0db00c7b70bbb89f (diff)
Notes
-rw-r--r--sys/dev/acpica/acpi_button.c4
-rw-r--r--sys/dev/acpica/acpi_lid.c4
2 files changed, 6 insertions, 2 deletions
diff --git a/sys/dev/acpica/acpi_button.c b/sys/dev/acpica/acpi_button.c
index 121ebec354d7..004a54ed35d7 100644
--- a/sys/dev/acpica/acpi_button.c
+++ b/sys/dev/acpica/acpi_button.c
@@ -155,6 +155,7 @@ acpi_button_attach(device_t dev)
return_VALUE (ENXIO);
}
acpi_device_enable_wake_capability(sc->button_handle, 1);
+ acpi_device_enable_wake_event(sc->button_handle);
return_VALUE (0);
}
@@ -162,10 +163,11 @@ acpi_button_attach(device_t dev)
static int
acpi_button_suspend(device_t dev)
{
+#if 0
struct acpi_button_softc *sc;
sc = device_get_softc(dev);
- acpi_device_enable_wake_event(sc->button_handle);
+#endif
return (0);
}
diff --git a/sys/dev/acpica/acpi_lid.c b/sys/dev/acpica/acpi_lid.c
index 5f64a62da5e9..82c49598f046 100644
--- a/sys/dev/acpica/acpi_lid.c
+++ b/sys/dev/acpica/acpi_lid.c
@@ -108,6 +108,7 @@ acpi_lid_attach(device_t dev)
AcpiInstallNotifyHandler(sc->lid_handle, ACPI_DEVICE_NOTIFY,
acpi_lid_notify_handler, sc);
acpi_device_enable_wake_capability(sc->lid_handle, 1);
+ acpi_device_enable_wake_event(sc->lid_handle);
return_VALUE (0);
}
@@ -115,10 +116,11 @@ acpi_lid_attach(device_t dev)
static int
acpi_lid_suspend(device_t dev)
{
+#if 0
struct acpi_lid_softc *sc;
sc = device_get_softc(dev);
- acpi_device_enable_wake_event(sc->lid_handle);
+#endif
return (0);
}