Skip to content

Commit

Permalink
acpica: fix compilation error
Browse files Browse the repository at this point in the history
Patch from Rafael J. Wysocki <rafael.j.wysocki@intel.com>

Fixes: 7a8379e ("ACPICA: Add support for using logical addresses of GPE blocks")
Link: https://lore.kernel.org/linux-acpi/fe077e28-2421-6d48-d55a-882b802e47c1@tessares.net/T/#u
Signed-off-by: Matthieu Baerts <matthieu.baerts@tessares.net>
  • Loading branch information
matttbe authored and jenkins-tessares committed Oct 24, 2020
1 parent 3cb12d2 commit 80fd952
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/acpi/acpica/hwgpe.c
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ acpi_status acpi_hw_gpe_read(u64 *value, struct acpi_gpe_address *reg)

if (reg->space_id == ACPI_ADR_SPACE_SYSTEM_MEMORY) {
#ifdef ACPI_GPE_USE_LOGICAL_ADDRESSES
*value = (u64)ACPI_GET8(reg->address);
*value = (u64)ACPI_GET8((unsigned long)reg->address);
return_ACPI_STATUS(AE_OK);
#else
return acpi_os_read_memory((acpi_physical_address)reg->address,
Expand Down Expand Up @@ -82,7 +82,7 @@ acpi_status acpi_hw_gpe_write(u64 value, struct acpi_gpe_address *reg)
{
if (reg->space_id == ACPI_ADR_SPACE_SYSTEM_MEMORY) {
#ifdef ACPI_GPE_USE_LOGICAL_ADDRESSES
ACPI_SET8(reg->address, value);
ACPI_SET8((unsigned long)reg->address, value);
return_ACPI_STATUS(AE_OK);
#else
return acpi_os_write_memory((acpi_physical_address)reg->address,
Expand Down

0 comments on commit 80fd952

Please sign in to comment.