diff options
author | Lan Tianyu <tianyu.lan@intel.com> | 2013-12-12 05:08:52 -0500 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2013-12-19 09:56:15 -0500 |
commit | 42b946bb35ef0057f13887dec5f081df0ba8840a (patch) | |
tree | d917a35a065a508beebef4dd4bbba44eaf865663 | |
parent | 8eaa29f92a66c92ade1ad663d14d975d776ef492 (diff) |
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 <tianyu.lan@intel.com>
[rjw: Changelog]
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
-rw-r--r-- | drivers/acpi/ec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/acpi/ec.c b/drivers/acpi/ec.c index ba5b56db9d27..7dac048e8f07 100644 --- a/drivers/acpi/ec.c +++ b/drivers/acpi/ec.c | |||
@@ -779,9 +779,9 @@ static int ec_install_handlers(struct acpi_ec *ec) | |||
779 | pr_err("Fail in evaluating the _REG object" | 779 | pr_err("Fail in evaluating the _REG object" |
780 | " of EC device. Broken bios is suspected.\n"); | 780 | " of EC device. Broken bios is suspected.\n"); |
781 | } else { | 781 | } else { |
782 | acpi_disable_gpe(NULL, ec->gpe); | ||
782 | acpi_remove_gpe_handler(NULL, ec->gpe, | 783 | acpi_remove_gpe_handler(NULL, ec->gpe, |
783 | &acpi_ec_gpe_handler); | 784 | &acpi_ec_gpe_handler); |
784 | acpi_disable_gpe(NULL, ec->gpe); | ||
785 | return -ENODEV; | 785 | return -ENODEV; |
786 | } | 786 | } |
787 | } | 787 | } |