ACPI / EC: disable GPE before removing GPE handler
authorLan Tianyu <tianyu.lan@intel.com>
Thu, 12 Dec 2013 10:08:52 +0000 (18:08 +0800)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 19 Dec 2013 14:56:15 +0000 (15:56 +0100)
commit42b946bb35ef0057f13887dec5f081df0ba8840a
treed917a35a065a508beebef4dd4bbba44eaf865663
parent8eaa29f92a66c92ade1ad663d14d975d776ef492
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>
drivers/acpi/ec.c