Skip to content

Commit 5e82eb3

Browse files
Nye Liukumargala
authored andcommitted
powerpc/CPM: Minor cosmetic changes to udbg_putc
udbg_putc is a *function pointer* that is initialized during udbg_init_cpm. It might not be initialized properly when called from udbg_putc_cpm(), so (recursively) call udbg_putc_cpm() directly. Signed-off-by: Nye Liu <nyet@mrv.com> Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
1 parent a308322 commit 5e82eb3

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

‎arch/powerpc/sysdev/cpm_common.c‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ static void udbg_putc_cpm(char c)
3737
u8 __iomem *txbuf = (u8 __iomem __force *)in_be32(&cpm_udbg_txdesc[1]);
3838

3939
if (c == '\n')
40-
udbg_putc('\r');
40+
udbg_putc_cpm('\r');
4141

4242
while (in_be32(&cpm_udbg_txdesc[0]) & 0x80000000)
4343
;
@@ -53,7 +53,6 @@ void __init udbg_init_cpm(void)
5353
setbat(1, 0xf0000000, 0xf0000000, 1024*1024, _PAGE_IO);
5454
#endif
5555
udbg_putc = udbg_putc_cpm;
56-
udbg_putc('X');
5756
}
5857
}
5958
#endif

0 commit comments

Comments
 (0)