summaryrefslogtreecommitdiffstats
path: root/sys/dev/acpica/acpi_acad.c
diff options
context:
space:
mode:
authornjl <njl@FreeBSD.org>2004-07-16 19:05:40 +0000
committernjl <njl@FreeBSD.org>2004-07-16 19:05:40 +0000
commitebf6efd74921d45bdb1cc581a0e208aa060996bc (patch)
treea0fb957d47fbd426ea96f074a2ffb3402642b4ac /sys/dev/acpica/acpi_acad.c
parent966f8768ba3c0ecd73d2a7478573560353010246 (diff)
downloadFreeBSD-src-ebf6efd74921d45bdb1cc581a0e208aa060996bc.zip
FreeBSD-src-ebf6efd74921d45bdb1cc581a0e208aa060996bc.tar.gz
Use ACPI_ALL_NOTIFY instead of registering handlers separately.
Diffstat (limited to 'sys/dev/acpica/acpi_acad.c')
-rw-r--r--sys/dev/acpica/acpi_acad.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/sys/dev/acpica/acpi_acad.c b/sys/dev/acpica/acpi_acad.c
index b4422b8..fc9f0bd 100644
--- a/sys/dev/acpica/acpi_acad.c
+++ b/sys/dev/acpica/acpi_acad.c
@@ -178,12 +178,10 @@ acpi_acad_attach(device_t dev)
sc->initializing = 0;
/*
- * Also install a system notify handler even though this is not
- * required by the specification. The Casio FIVA needs this.
+ * Install both system and device notify handlers since the Casio
+ * FIVA needs them.
*/
- AcpiInstallNotifyHandler(handle, ACPI_SYSTEM_NOTIFY,
- acpi_acad_notify_handler, dev);
- AcpiInstallNotifyHandler(handle, ACPI_DEVICE_NOTIFY,
+ AcpiInstallNotifyHandler(handle, ACPI_ALL_NOTIFY,
acpi_acad_notify_handler, dev);
AcpiOsQueueForExecution(OSD_PRIORITY_LO, acpi_acad_init_acline, dev);
OpenPOWER on IntegriCloud