diff options
author | jkim <jkim@FreeBSD.org> | 2010-07-06 20:57:28 +0000 |
---|---|---|
committer | jkim <jkim@FreeBSD.org> | 2010-07-06 20:57:28 +0000 |
commit | ee32cc37846fecf2cb4ccc3dbb6b5b016d146813 (patch) | |
tree | a1a1e6ac1daa6cd0de9bf90f7809c15a3f9bc326 /sys/dev/acpica/acpi_button.c | |
parent | a3fd34d6553f34a17c1ec61d3694f885e251cf65 (diff) | |
parent | 9ef1b91c0f59a1a15565c354b3e372ab265c7b5a (diff) | |
download | FreeBSD-src-ee32cc37846fecf2cb4ccc3dbb6b5b016d146813.zip FreeBSD-src-ee32cc37846fecf2cb4ccc3dbb6b5b016d146813.tar.gz |
Merge ACPICA 20100702.
Diffstat (limited to 'sys/dev/acpica/acpi_button.c')
-rw-r--r-- | sys/dev/acpica/acpi_button.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/dev/acpica/acpi_button.c b/sys/dev/acpica/acpi_button.c index 56a1d95..2fdbd7a 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); } |