mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-31 04:01:48 -04:00
ACPI / EC: disable GPE before removing GPE handler
Adjust the order of disabling the EC GPE and removing its handler to avoid unhandled events. Signed-off-by: Lan Tianyu <[email protected]> [rjw: Changelog] Signed-off-by: Rafael J. Wysocki <[email protected]>
This commit is contained in:
parent
8eaa29f92a
commit
42b946bb35
1 changed files with 1 additions and 1 deletions
|
|
@ -779,9 +779,9 @@ static int ec_install_handlers(struct acpi_ec *ec)
|
|||
pr_err("Fail in evaluating the _REG object"
|
||||
" of EC device. Broken bios is suspected.\n");
|
||||
} else {
|
||||
acpi_disable_gpe(NULL, ec->gpe);
|
||||
acpi_remove_gpe_handler(NULL, ec->gpe,
|
||||
&acpi_ec_gpe_handler);
|
||||
acpi_disable_gpe(NULL, ec->gpe);
|
||||
return -ENODEV;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue