aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/acpica/acpi_button.c
diff options
context:
space:
mode:
authorJung-uk Kim <jkim@FreeBSD.org>2010-07-06 20:57:28 +0000
committerJung-uk Kim <jkim@FreeBSD.org>2010-07-06 20:57:28 +0000
commita88e22b7ad0a8400875be9c3d02d09d0a8010b9c (patch)
treea1a1e6ac1daa6cd0de9bf90f7809c15a3f9bc326 /sys/dev/acpica/acpi_button.c
parent5d61e252b4293a6f039abd044d6a2652324c60dc (diff)
parent6d31afa8e3ab79bfa6c97c341af73f4fc093351a (diff)
Notes
Diffstat (limited to 'sys/dev/acpica/acpi_button.c')
-rw-r--r--sys/dev/acpica/acpi_button.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/dev/acpica/acpi_button.c b/sys/dev/acpica/acpi_button.c
index 56a1d951f793..2fdbd7adc3fe 100644
--- a/sys/dev/acpica/acpi_button.c
+++ b/sys/dev/acpica/acpi_button.c
@@ -127,6 +127,7 @@ acpi_button_probe(device_t dev)
static int
acpi_button_attach(device_t dev)
{
+ struct acpi_prw_data prw;
struct acpi_button_softc *sc;
ACPI_STATUS status;
int event;
@@ -165,6 +166,8 @@ acpi_button_attach(device_t dev)
/* Enable the GPE for wake/runtime. */
acpi_wake_set_enable(dev, 1);
+ if (acpi_parse_prw(sc->button_handle, &prw) == 0)
+ AcpiEnableGpe(prw.gpe_handle, prw.gpe_bit);
return_VALUE (0);
}