]> git.baikalelectronics.ru Git - kernel.git/commit
ACPICA: Events: Remove duplicated sanity check in acpi_ev_enable_gpe()
authorLv Zheng <lv.zheng@intel.com>
Thu, 5 Feb 2015 07:19:54 +0000 (15:19 +0800)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 5 Feb 2015 14:31:37 +0000 (15:31 +0100)
commit4a5fc411693f9c4f615a47a3d855d1b95fac1bee
tree83fac47356f71c0891e09a5300e435f2ac17c1ac
parent43a693a9fe4b42d05a773e9c0483b5646a5ad3c9
ACPICA: Events: Remove duplicated sanity check in acpi_ev_enable_gpe()

ACPICA commit ca10324788bc9bdaf47fa9e51145129c1299144d

This patch deletes a sanity check from acpi_ev_enable_gpe().

This kind of check is already done in
acpi_enable_gpe()/acpi_remove_gpe_handler()/acpi_update_all_gpes() before invoking
acpi_ev_enable_gpe():
1. acpi_enable_gpe(): same check (skip if DISPATCH_NONE) is now implemented.
2. acpi_remove_gpe_handler(): a more strict check (skip if !DISPATCH_HANDLER)
                           is implemented.
3. acpi_update_all_gpes(): a more strict check (skip if DISPATCH_NONE ||
                        DISPATCH_HANDLER || CAN_WAKE)
4. acpi_set_gpe(): since it is invoked by the OSPM driver where the GPE
                 handler is known to be available, such check isn't needed.
So we can simply remove this duplicated check from acpi_ev_enable_gpe().
Lv Zheng.

Link: https://github.com/acpica/acpica/commit/ca103247
Signed-off-by: Lv Zheng <lv.zheng@intel.com>
Signed-off-by: David E. Box <david.e.box@linux.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/evgpe.c