aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGraeme Gregory <graeme.gregory@linaro.org>2014-09-08 10:36:44 -0400
committerGraeme Gregory <graeme.gregory@linaro.org>2014-11-06 11:57:38 +0000
commit7b433ffab4bc7ecbf209821d93afa035ec047c4b (patch)
tree548ec48b72dfead3a915691f59996fb89ffb12b3
parentae8df918bc25b1da2f1b9cc7f6764f604d274adc (diff)
downloadleg-kernel-7b433ffab4bc7ecbf209821d93afa035ec047c4b.tar.gz
acpi: add arm to the platforms that use ioremap
Now with the base changes to the arm memory mapping it is safe to convert to using ioremap to map in the tables. Signed-off-by: Al Stone <al.stone@linaro.org> Signed-off-by: Graeme Gregory <graeme.gregory@linaro.org>
-rw-r--r--drivers/acpi/osl.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/acpi/osl.c b/drivers/acpi/osl.c
index 9964f70be98d..5c480d5cd173 100644
--- a/drivers/acpi/osl.c
+++ b/drivers/acpi/osl.c
@@ -336,11 +336,11 @@ acpi_map_lookup_virt(void __iomem *virt, acpi_size size)
return NULL;
}
-#ifndef CONFIG_IA64
-#define should_use_kmap(pfn) page_is_ram(pfn)
-#else
+#if defined(CONFIG_IA64) || defined(CONFIG_ARM) || defined(CONFIG_ARM64)
/* ioremap will take care of cache attributes */
#define should_use_kmap(pfn) 0
+#else
+#define should_use_kmap(pfn) page_is_ram(pfn)
#endif
static void __iomem *acpi_map(acpi_physical_address pg_off, unsigned long pg_sz)