mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-05 12:56:08 +00:00
Use ACPI_ALL_NOTIFY instead of registering handlers separately.
This commit is contained in:
parent
b9e96ac139
commit
021730ab36
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=132261
@ -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);
|
||||
|
||||
|
@ -320,9 +320,7 @@ acpi_cmbat_attach(device_t dev)
|
||||
* Install a system notify handler in addition to the device notify.
|
||||
* Toshiba notebook uses this alternate notify for its battery.
|
||||
*/
|
||||
AcpiInstallNotifyHandler(handle, ACPI_SYSTEM_NOTIFY,
|
||||
acpi_cmbat_notify_handler, dev);
|
||||
AcpiInstallNotifyHandler(handle, ACPI_DEVICE_NOTIFY,
|
||||
AcpiInstallNotifyHandler(handle, ACPI_ALL_NOTIFY,
|
||||
acpi_cmbat_notify_handler, dev);
|
||||
|
||||
sc->bif_updating = sc->bst_updating = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user