aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/efi.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86/kernel/efi.c')
-rw-r--r--arch/x86/kernel/efi.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/arch/x86/kernel/efi.c b/arch/x86/kernel/efi.c
index 2939b015c2ed..5d492f99d967 100644
--- a/arch/x86/kernel/efi.c
+++ b/arch/x86/kernel/efi.c
@@ -256,12 +256,12 @@ void __init efi_init(void)
256 memmap.desc_version = boot_params.efi_info.efi_memdesc_version; 256 memmap.desc_version = boot_params.efi_info.efi_memdesc_version;
257 memmap.desc_size = boot_params.efi_info.efi_memdesc_size; 257 memmap.desc_size = boot_params.efi_info.efi_memdesc_size;
258 258
259 efi.systab = efi_early_ioremap((unsigned long)efi_phys.systab, 259 efi.systab = early_ioremap((unsigned long)efi_phys.systab,
260 sizeof(efi_system_table_t)); 260 sizeof(efi_system_table_t));
261 if (efi.systab == NULL) 261 if (efi.systab == NULL)
262 printk(KERN_ERR "Couldn't map the EFI system table!\n"); 262 printk(KERN_ERR "Couldn't map the EFI system table!\n");
263 memcpy(&efi_systab, efi.systab, sizeof(efi_system_table_t)); 263 memcpy(&efi_systab, efi.systab, sizeof(efi_system_table_t));
264 efi_early_iounmap(efi.systab, sizeof(efi_system_table_t)); 264 early_iounmap(efi.systab, sizeof(efi_system_table_t));
265 efi.systab = &efi_systab; 265 efi.systab = &efi_systab;
266 266
267 /* 267 /*
@@ -278,14 +278,14 @@ void __init efi_init(void)
278 /* 278 /*
279 * Show what we know for posterity 279 * Show what we know for posterity
280 */ 280 */
281 c16 = tmp = efi_early_ioremap(efi.systab->fw_vendor, 2); 281 c16 = tmp = early_ioremap(efi.systab->fw_vendor, 2);
282 if (c16) { 282 if (c16) {
283 for (i = 0; i < sizeof(vendor) && *c16; ++i) 283 for (i = 0; i < sizeof(vendor) && *c16; ++i)
284 vendor[i] = *c16++; 284 vendor[i] = *c16++;
285 vendor[i] = '\0'; 285 vendor[i] = '\0';
286 } else 286 } else
287 printk(KERN_ERR PFX "Could not map the firmware vendor!\n"); 287 printk(KERN_ERR PFX "Could not map the firmware vendor!\n");
288 efi_early_iounmap(tmp, 2); 288 early_iounmap(tmp, 2);
289 289
290 printk(KERN_INFO "EFI v%u.%.02u by %s \n", 290 printk(KERN_INFO "EFI v%u.%.02u by %s \n",
291 efi.systab->hdr.revision >> 16, 291 efi.systab->hdr.revision >> 16,
@@ -294,7 +294,7 @@ void __init efi_init(void)
294 /* 294 /*
295 * Let's see what config tables the firmware passed to us. 295 * Let's see what config tables the firmware passed to us.
296 */ 296 */
297 config_tables = efi_early_ioremap( 297 config_tables = early_ioremap(
298 efi.systab->tables, 298 efi.systab->tables,
299 efi.systab->nr_tables * sizeof(efi_config_table_t)); 299 efi.systab->nr_tables * sizeof(efi_config_table_t));
300 if (config_tables == NULL) 300 if (config_tables == NULL)
@@ -328,7 +328,7 @@ void __init efi_init(void)
328 } 328 }
329 } 329 }
330 printk("\n"); 330 printk("\n");
331 efi_early_iounmap(config_tables, 331 early_iounmap(config_tables,
332 efi.systab->nr_tables * sizeof(efi_config_table_t)); 332 efi.systab->nr_tables * sizeof(efi_config_table_t));
333 333
334 /* 334 /*
@@ -337,8 +337,8 @@ void __init efi_init(void)
337 * address of several of the EFI runtime functions, needed to 337 * address of several of the EFI runtime functions, needed to
338 * set the firmware into virtual mode. 338 * set the firmware into virtual mode.
339 */ 339 */
340 runtime = efi_early_ioremap((unsigned long)efi.systab->runtime, 340 runtime = early_ioremap((unsigned long)efi.systab->runtime,
341 sizeof(efi_runtime_services_t)); 341 sizeof(efi_runtime_services_t));
342 if (runtime != NULL) { 342 if (runtime != NULL) {
343 /* 343 /*
344 * We will only need *early* access to the following 344 * We will only need *early* access to the following
@@ -357,11 +357,11 @@ void __init efi_init(void)
357 } else 357 } else
358 printk(KERN_ERR "Could not map the EFI runtime service " 358 printk(KERN_ERR "Could not map the EFI runtime service "
359 "table!\n"); 359 "table!\n");
360 efi_early_iounmap(runtime, sizeof(efi_runtime_services_t)); 360 early_iounmap(runtime, sizeof(efi_runtime_services_t));
361 361
362 /* Map the EFI memory map */ 362 /* Map the EFI memory map */
363 memmap.map = efi_early_ioremap((unsigned long)memmap.phys_map, 363 memmap.map = early_ioremap((unsigned long)memmap.phys_map,
364 memmap.nr_map * memmap.desc_size); 364 memmap.nr_map * memmap.desc_size);
365 if (memmap.map == NULL) 365 if (memmap.map == NULL)
366 printk(KERN_ERR "Could not map the EFI memory map!\n"); 366 printk(KERN_ERR "Could not map the EFI memory map!\n");
367 memmap.map_end = memmap.map + (memmap.nr_map * memmap.desc_size); 367 memmap.map_end = memmap.map + (memmap.nr_map * memmap.desc_size);