powerpc/legacy_serial: Use early_ioremap()
authorChristophe Leroy <christophe.leroy@c-s.fr>
Tue, 20 Apr 2021 13:32:49 +0000 (13:32 +0000)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 22 Apr 2021 10:59:15 +0000 (20:59 +1000)
commit0bd3f9e953bd3636e73d296e9bed11a25c09c118
treebf145da5f175bcc3dd7fc9e853740c2fdda5f303
parent9ccba66d4d2aff9a3909aa77d57ea8b7cc166f3c
powerpc/legacy_serial: Use early_ioremap()

[    0.000000] ioremap() called early from find_legacy_serial_ports+0x3cc/0x474. Use early_ioremap() instead

find_legacy_serial_ports() is called early from setup_arch(), before
paging_init(). vmalloc is not available yet, ioremap shouldn't be
used that early.

Use early_ioremap() and switch to a regular ioremap() later.

Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Tested-by: Chris Packham <chris.packham@alliedtelesis.co.nz>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/103ed8ee9e5973c958ec1da2d0b0764f69395d01.1618925560.git.christophe.leroy@csgroup.eu
arch/powerpc/kernel/legacy_serial.c