[<prev] [next>] [day] [month] [year] [list]
Message-ID: <51DDA7FB.1000801@gmail.com>
Date: Thu, 11 Jul 2013 02:29:15 +0800
From: Zhang Yanfei <zhangyanfei.yes@...il.com>
To: rjw@...k.pl, lenb@...nel.org, "H. Peter Anvin" <hpa@...or.com>,
Ingo Molnar <mingo@...hat.com>
CC: "linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>
Subject: [PATCH] ACPI: Use early_memremap() instead of early_ioremap()
From: Zhang Yanfei <zhangyanfei@...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@...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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists