Skip to content

Commit

Permalink
x86/mm, efi: Use early_ioremap() in arch/x86/platform/efi/efi-bgrt.c
Browse files Browse the repository at this point in the history
Use early_ioremap() to map an I/O-area instead of
early_memremap().

Signed-off-by: Juergen Gross <jgross@suse.com>
Cc: matt.fleming@intel.com
Link: http://lkml.kernel.org/r/1424769211-11378-5-git-send-email-jgross@suse.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
  • Loading branch information
jgross1 authored and Ingo Molnar committed Feb 24, 2015
1 parent 8d4a40b commit 954e12f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions arch/x86/platform/efi/efi-bgrt.c
Expand Up @@ -67,7 +67,7 @@ void __init efi_bgrt_init(void)

image = efi_lookup_mapped_addr(bgrt_tab->image_address);
if (!image) {
image = early_memremap(bgrt_tab->image_address,
image = early_ioremap(bgrt_tab->image_address,
sizeof(bmp_header));
ioremapped = true;
if (!image) {
Expand All @@ -89,7 +89,7 @@ void __init efi_bgrt_init(void)
}

if (ioremapped) {
image = early_memremap(bgrt_tab->image_address,
image = early_ioremap(bgrt_tab->image_address,
bmp_header.size);
if (!image) {
pr_err("Ignoring BGRT: failed to map image memory\n");
Expand Down

0 comments on commit 954e12f

Please sign in to comment.