summaryrefslogtreecommitdiff
path: root/drivers/acpi/acpica/acevents.h
diff options
context:
space:
mode:
authorBob Moore <robert.moore@intel.com>2014-01-08 09:44:10 +0400
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2014-01-08 18:31:37 +0400
commit4bec3d80a0c596cbde846cfb424058e1374ad6ff (patch)
tree3276e94fa41a14547757a4421fd97e670e2856cb /drivers/acpi/acpica/acevents.h
parent36f3615152c139cfb4f4789fd6f3c84d32f142da (diff)
downloadlinux-4bec3d80a0c596cbde846cfb424058e1374ad6ff.tar.xz
ACPICA: Improve exception handling for GPE block installation.
1) Return an actual status value from acpi_ev_get_gpe_xrupt_block. 2) Don't clobber the status when exiting acpi_ev_install_gpe_block. References: https://bugs.acpica.org/show_bug.cgi?id=1019 Signed-off-by: Bob Moore <robert.moore@intel.com> Signed-off-by: Lv Zheng <lv.zheng@intel.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/acpi/acpica/acevents.h')
-rw-r--r--drivers/acpi/acpica/acevents.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/acpi/acpica/acevents.h b/drivers/acpi/acpica/acevents.h
index 41abe552c7a3..073830512d84 100644
--- a/drivers/acpi/acpica/acevents.h
+++ b/drivers/acpi/acpica/acevents.h
@@ -149,7 +149,9 @@ acpi_status
acpi_ev_get_gpe_device(struct acpi_gpe_xrupt_info *gpe_xrupt_info,
struct acpi_gpe_block_info *gpe_block, void *context);
-struct acpi_gpe_xrupt_info *acpi_ev_get_gpe_xrupt_block(u32 interrupt_number);
+acpi_status
+acpi_ev_get_gpe_xrupt_block(u32 interrupt_number,
+ struct acpi_gpe_xrupt_info **gpe_xrupt_block);
acpi_status acpi_ev_delete_gpe_xrupt(struct acpi_gpe_xrupt_info *gpe_xrupt);