* [PATCH] ACPI: Use early_memremap() instead of early_ioremap()
@ 2013-07-10 18:29 Zhang Yanfei
0 siblings, 0 replies; only message in thread
From: Zhang Yanfei @ 2013-07-10 18:29 UTC (permalink / raw)
To: rjw, lenb, H. Peter Anvin, Ingo Molnar; +Cc: linux-kernel@vger.kernel.org
From: Zhang Yanfei <zhangyanfei@cn.fujitsu.com>
The mapping of acpi_tables_addr is obviously ordinary memory, so
use early_memremap() rather than early_iormeap().
Signed-off-by: Zhang Yanfei <zhangyanfei@cn.fujitsu.com>
---
drivers/acpi/osl.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/acpi/osl.c b/drivers/acpi/osl.c
index 6ab2c35..8961e6e 100644
--- a/drivers/acpi/osl.c
+++ b/drivers/acpi/osl.c
@@ -644,7 +644,7 @@ void __init acpi_initrd_override(void *data, size_t size)
memblock_reserve(acpi_tables_addr, all_tables_size);
arch_reserve_mem_area(acpi_tables_addr, all_tables_size);
- p = early_ioremap(acpi_tables_addr, all_tables_size);
+ p = early_memremap(acpi_tables_addr, all_tables_size);
for (no = 0; no < table_nr; no++) {
memcpy(p + total_offset, early_initrd_files[no].data,
--
1.7.1
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2013-07-10 18:29 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-07-10 18:29 [PATCH] ACPI: Use early_memremap() instead of early_ioremap() Zhang Yanfei
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox