aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/acpi/acpica/evxface.c
diff options
context:
space:
mode:
authorLin Ming <ming.m.lin@intel.com>2010-12-13 00:38:46 -0500
committerLen Brown <len.brown@intel.com>2011-01-12 04:24:41 -0500
commit8b6cd8ad18def34bfc5045b2a0234329bf94cf78 (patch)
tree659d2951081b7dd2c09fe63bc569da5555795bbd /drivers/acpi/acpica/evxface.c
parent3a37898d507794cfc68a092303e02651d3f01308 (diff)
ACPICA: New GPE handler callback definition
The new GPE handler callback has 2 additional parameters, gpe_device and gpe_number. typedef u32 (*acpi_gpe_handler) (acpi_handle gpe_device, u32 gpe_number, void *context); Signed-off-by: Lin Ming <ming.m.lin@intel.com> Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'drivers/acpi/acpica/evxface.c')
-rw-r--r--drivers/acpi/acpica/evxface.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/acpi/acpica/evxface.c b/drivers/acpi/acpica/evxface.c
index 042a6d69f38..d193b905dfa 100644
--- a/drivers/acpi/acpica/evxface.c
+++ b/drivers/acpi/acpica/evxface.c
@@ -671,10 +671,10 @@ ACPI_EXPORT_SYMBOL(acpi_remove_notify_handler)
671acpi_status 671acpi_status
672acpi_install_gpe_handler(acpi_handle gpe_device, 672acpi_install_gpe_handler(acpi_handle gpe_device,
673 u32 gpe_number, 673 u32 gpe_number,
674 u32 type, acpi_event_handler address, void *context) 674 u32 type, acpi_gpe_handler address, void *context)
675{ 675{
676 struct acpi_gpe_event_info *gpe_event_info; 676 struct acpi_gpe_event_info *gpe_event_info;
677 struct acpi_handler_info *handler; 677 struct acpi_gpe_handler_info *handler;
678 acpi_status status; 678 acpi_status status;
679 acpi_cpu_flags flags; 679 acpi_cpu_flags flags;
680 680
@@ -693,7 +693,7 @@ acpi_install_gpe_handler(acpi_handle gpe_device,
693 693
694 /* Allocate memory for the handler object */ 694 /* Allocate memory for the handler object */
695 695
696 handler = ACPI_ALLOCATE_ZEROED(sizeof(struct acpi_handler_info)); 696 handler = ACPI_ALLOCATE_ZEROED(sizeof(struct acpi_gpe_handler_info));
697 if (!handler) { 697 if (!handler) {
698 status = AE_NO_MEMORY; 698 status = AE_NO_MEMORY;
699 goto unlock_and_exit; 699 goto unlock_and_exit;
@@ -777,10 +777,10 @@ ACPI_EXPORT_SYMBOL(acpi_install_gpe_handler)
777 ******************************************************************************/ 777 ******************************************************************************/
778acpi_status 778acpi_status
779acpi_remove_gpe_handler(acpi_handle gpe_device, 779acpi_remove_gpe_handler(acpi_handle gpe_device,
780 u32 gpe_number, acpi_event_handler address) 780 u32 gpe_number, acpi_gpe_handler address)
781{ 781{
782 struct acpi_gpe_event_info *gpe_event_info; 782 struct acpi_gpe_event_info *gpe_event_info;
783 struct acpi_handler_info *handler; 783 struct acpi_gpe_handler_info *handler;
784 acpi_status status; 784 acpi_status status;
785 acpi_cpu_flags flags; 785 acpi_cpu_flags flags;
786 786