summaryrefslogtreecommitdiffstats
path: root/arch/arm64/kernel/early_printk.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm64/kernel/early_printk.c')
-rw-r--r--arch/arm64/kernel/early_printk.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/arch/arm64/kernel/early_printk.c b/arch/arm64/kernel/early_printk.c
index ffbbdde..2dc36d0 100644
--- a/arch/arm64/kernel/early_printk.c
+++ b/arch/arm64/kernel/early_printk.c
@@ -143,10 +143,8 @@ static int __init setup_early_printk(char *buf)
}
/* no options parsing yet */
- if (paddr) {
- set_fixmap_io(FIX_EARLYCON_MEM_BASE, paddr);
- early_base = (void __iomem *)fix_to_virt(FIX_EARLYCON_MEM_BASE);
- }
+ if (paddr)
+ early_base = (void __iomem *)set_fixmap_offset_io(FIX_EARLYCON_MEM_BASE, paddr);
printch = match->printch;
early_console = &early_console_dev;
OpenPOWER on IntegriCloud