aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGraeme Gregory <graeme.gregory@linaro.org>2014-01-21 13:18:48 +0000
committerGraeme Gregory <graeme.gregory@linaro.org>2014-06-03 09:24:44 +0100
commitb0bae72b9770689011d425da68e4c957ed0992c0 (patch)
tree6149b38a165ac30fa6741d361951a34b875d870f
parentacfdbd48f017d57dfd72e17a96c2cdf4568d1709 (diff)
downloadleg-kernel-b0bae72b9770689011d425da68e4c957ed0992c0.tar.gz
ACPI/ARM64: switch to ioremap_early
Switch to ioremap_early to access ACPI tables in early boot. Signed-off-by: Graeme Gregory <graeme.gregory@linaro.org>
-rw-r--r--drivers/acpi/plat/arm-core.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/drivers/acpi/plat/arm-core.c b/drivers/acpi/plat/arm-core.c
index 53c822183402..201a879a08b7 100644
--- a/drivers/acpi/plat/arm-core.c
+++ b/drivers/acpi/plat/arm-core.c
@@ -86,11 +86,7 @@ char *__init __acpi_map_table(unsigned long phys, unsigned long size)
if (!phys || !size)
return NULL;
- /*
- * temporarily use phys_to_virt(),
- * should be early_memremap(phys, size) here
- */
- return phys_to_virt(phys);
+ return early_memremap(phys, size);
}
void __init __acpi_unmap_table(char *map, unsigned long size)
@@ -98,7 +94,7 @@ void __init __acpi_unmap_table(char *map, unsigned long size)
if (!map || !size)
return;
- /* should be early_iounmap(map, size); */
+ early_iounmap(map, size);
return;
}