ACPICA: Events: Update GPE handler removal, match behavior of handler install.
authorLv Zheng <lv.zheng@intel.com>
Fri, 10 Oct 2014 02:39:51 +0000 (10:39 +0800)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 20 Oct 2014 22:39:40 +0000 (00:39 +0200)
commit1809919a309dc8c8faad3c048bfda9a9f3fa0443
tree2d3e130ec7d48ddafaf3d01cf8c6a809928af649
parent437b75123ca5ee36897bfcd1272e96109bed3ea1
ACPICA: Events: Update GPE handler removal, match behavior of handler install.

The originally_enabled check is not paired between
acpi_install_gpe_handler() and acpi_remove_gpe_handler().

In ACPICA upstream, there is code to protect original enabled state for
ACPI_GPE_DISPATCH_NOTIFY and this commit fixes an issue for this feature.

Link: https://github.com/acpica/acpica/commit/967f314c
Signed-off-by: Lv Zheng <lv.zheng@intel.com>
Signed-off-by: Bob Moore <robert.moore@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/acpica/evxface.c