diff options
author | Ingo Molnar <mingo@elte.hu> | 2008-12-08 09:07:49 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-12-08 09:07:49 -0500 |
commit | aa9c9b8c584a42a094202b7e0f63497e888f86a7 (patch) | |
tree | 3cb3b022054a7c1722657288518f495e0c4d9983 /arch/x86/kernel/es7000_32.c | |
parent | 87f7606591aea6a8a38ea4c8911b5eeeee2740b8 (diff) | |
parent | 218d11a8b071b23b76c484fd5f72a4fe3306801e (diff) |
Merge branch 'linus' into x86/quirks
Diffstat (limited to 'arch/x86/kernel/es7000_32.c')
-rw-r--r-- | arch/x86/kernel/es7000_32.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/arch/x86/kernel/es7000_32.c b/arch/x86/kernel/es7000_32.c index 71d7be624d46..53699c931ad4 100644 --- a/arch/x86/kernel/es7000_32.c +++ b/arch/x86/kernel/es7000_32.c | |||
@@ -292,31 +292,24 @@ int __init find_unisys_acpi_oem_table(unsigned long *oem_addr) | |||
292 | { | 292 | { |
293 | struct acpi_table_header *header = NULL; | 293 | struct acpi_table_header *header = NULL; |
294 | int i = 0; | 294 | int i = 0; |
295 | acpi_size tbl_size; | ||
296 | 295 | ||
297 | while (ACPI_SUCCESS(acpi_get_table_with_size("OEM1", i++, &header, &tbl_size))) { | 296 | while (ACPI_SUCCESS(acpi_get_table("OEM1", i++, &header))) { |
298 | if (!memcmp((char *) &header->oem_id, "UNISYS", 6)) { | 297 | if (!memcmp((char *) &header->oem_id, "UNISYS", 6)) { |
299 | struct oem_table *t = (struct oem_table *)header; | 298 | struct oem_table *t = (struct oem_table *)header; |
300 | 299 | ||
301 | oem_addrX = t->OEMTableAddr; | 300 | oem_addrX = t->OEMTableAddr; |
302 | oem_size = t->OEMTableSize; | 301 | oem_size = t->OEMTableSize; |
303 | early_acpi_os_unmap_memory(header, tbl_size); | ||
304 | 302 | ||
305 | *oem_addr = (unsigned long)__acpi_map_table(oem_addrX, | 303 | *oem_addr = (unsigned long)__acpi_map_table(oem_addrX, |
306 | oem_size); | 304 | oem_size); |
307 | return 0; | 305 | return 0; |
308 | } | 306 | } |
309 | early_acpi_os_unmap_memory(header, tbl_size); | ||
310 | } | 307 | } |
311 | return -1; | 308 | return -1; |
312 | } | 309 | } |
313 | 310 | ||
314 | void __init unmap_unisys_acpi_oem_table(unsigned long oem_addr) | 311 | void __init unmap_unisys_acpi_oem_table(unsigned long oem_addr) |
315 | { | 312 | { |
316 | if (!oem_addr) | ||
317 | return; | ||
318 | |||
319 | __acpi_unmap_table((char *)oem_addr, oem_size); | ||
320 | } | 313 | } |
321 | #endif | 314 | #endif |
322 | 315 | ||