Skip to content
Snippets Groups Projects
Commit eef80285 authored by Gabor Juhos's avatar Gabor Juhos
Browse files

ar71xx: fix trailing statements location


Signed-off-by: default avatarArnaud Lacombe <lacombar@gmail.com>

SVN-Revision: 23976
parent 500fac17
No related branches found
No related tags found
No related merge requests found
......@@ -157,10 +157,12 @@ EXPORT_SYMBOL_GPL(ar71xx_device_stopped);
void ar71xx_ddr_flush(u32 reg)
{
ar71xx_ddr_wr(reg, 1);
while ((ar71xx_ddr_rr(reg) & 0x1));
while ((ar71xx_ddr_rr(reg) & 0x1))
;
ar71xx_ddr_wr(reg, 1);
while ((ar71xx_ddr_rr(reg) & 0x1));
while ((ar71xx_ddr_rr(reg) & 0x1))
;
}
EXPORT_SYMBOL_GPL(ar71xx_ddr_flush);
......
......@@ -23,8 +23,10 @@
void prom_putchar(unsigned char ch)
{
while (((UART_READ(UART_LSR)) & UART_LSR_THRE) == 0);
while (((UART_READ(UART_LSR)) & UART_LSR_THRE) == 0)
;
UART_WRITE(UART_TX, ch);
while (((UART_READ(UART_LSR)) & UART_LSR_THRE) == 0);
while (((UART_READ(UART_LSR)) & UART_LSR_THRE) == 0)
;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment