mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] ACPI/EC: disable gpe before removing gpe handler
@ 2013-12-12 10:08 Lan Tianyu
  0 siblings, 0 replies; only message in thread
From: Lan Tianyu @ 2013-12-12 10:08 UTC (permalink / raw)
  To: lenb, rjw; +Cc: Lan Tianyu, linux-acpi, linux-kernel

Adjust the order of disabling gpe and removing gpe handler to
make sure no gpe after removing gpe handler.

Signed-off-by: Lan Tianyu <tianyu.lan@intel.com>
---
 drivers/acpi/ec.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/acpi/ec.c b/drivers/acpi/ec.c
index ff40120..172a124 100644
--- a/drivers/acpi/ec.c
+++ b/drivers/acpi/ec.c
@@ -778,9 +778,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;
 		}
 	}
-- 
1.8.2.1


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2013-12-12 10:08 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-12-12 10:08 [PATCH] ACPI/EC: disable gpe before removing gpe handler Lan Tianyu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®