diff options
Diffstat (limited to 'drivers/acpi/events/evgpe.c')
-rw-r--r-- | drivers/acpi/events/evgpe.c | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/drivers/acpi/events/evgpe.c b/drivers/acpi/events/evgpe.c index ca356e5ae2c3..c5e53aae86f7 100644 --- a/drivers/acpi/events/evgpe.c +++ b/drivers/acpi/events/evgpe.c | |||
@@ -315,7 +315,7 @@ struct acpi_gpe_event_info *acpi_ev_get_gpe_event_info(acpi_handle gpe_device, | |||
315 | { | 315 | { |
316 | union acpi_operand_object *obj_desc; | 316 | union acpi_operand_object *obj_desc; |
317 | struct acpi_gpe_block_info *gpe_block; | 317 | struct acpi_gpe_block_info *gpe_block; |
318 | acpi_native_uint i; | 318 | u32 i; |
319 | 319 | ||
320 | ACPI_FUNCTION_ENTRY(); | 320 | ACPI_FUNCTION_ENTRY(); |
321 | 321 | ||
@@ -389,8 +389,8 @@ u32 acpi_ev_gpe_detect(struct acpi_gpe_xrupt_info * gpe_xrupt_list) | |||
389 | u32 status_reg; | 389 | u32 status_reg; |
390 | u32 enable_reg; | 390 | u32 enable_reg; |
391 | acpi_cpu_flags flags; | 391 | acpi_cpu_flags flags; |
392 | acpi_native_uint i; | 392 | u32 i; |
393 | acpi_native_uint j; | 393 | u32 j; |
394 | 394 | ||
395 | ACPI_FUNCTION_NAME(ev_gpe_detect); | 395 | ACPI_FUNCTION_NAME(ev_gpe_detect); |
396 | 396 | ||
@@ -472,13 +472,7 @@ u32 acpi_ev_gpe_detect(struct acpi_gpe_xrupt_info * gpe_xrupt_list) | |||
472 | */ | 472 | */ |
473 | int_status |= | 473 | int_status |= |
474 | acpi_ev_gpe_dispatch(&gpe_block-> | 474 | acpi_ev_gpe_dispatch(&gpe_block-> |
475 | event_info[(i * | 475 | event_info[((acpi_size) i * ACPI_GPE_REGISTER_WIDTH) + j], j + gpe_register_info->base_gpe_number); |
476 | ACPI_GPE_REGISTER_WIDTH) | ||
477 | + | ||
478 | j], | ||
479 | (u32) j + | ||
480 | gpe_register_info-> | ||
481 | base_gpe_number); | ||
482 | } | 476 | } |
483 | } | 477 | } |
484 | } | 478 | } |