@@ -260,7 +260,6 @@ EXPORT_SYMBOL(acpi_os_map_generic_address);
void acpi_os_unmap_generic_address(struct acpi_generic_address *gas)
{
u64 addr;
- struct acpi_ioremap *map;
if (gas->space_id != ACPI_ADR_SPACE_SYSTEM_MEMORY)
return;
@@ -270,16 +269,8 @@ void acpi_os_unmap_generic_address(struct acpi_generic_address *gas)
if (!addr || !gas->bit_width)
return;
- mutex_lock(&acpi_ioremap_lock);
- map = acpi_map_lookup_phys(addr, gas->bit_width / 8);
- if (!map) {
- mutex_unlock(&acpi_ioremap_lock);
- return;
- }
- acpi_map_put(map);
- mutex_unlock(&acpi_ioremap_lock);
-
- acpi_map_cleanup(map);
+ acpi_os_unmap_iomem((void __iomem *)((unsigned long)addr),
+ gas->bit_width / 8);
}
EXPORT_SYMBOL(acpi_os_unmap_generic_address);