ar71xx: fix trailing statements location

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

SVN-Revision: 23976
owl
Gabor Juhos 2010-11-12 18:50:47 +00:00
parent 500fac1735
commit eef802855a
2 changed files with 8 additions and 4 deletions

View File

@ -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);

View File

@ -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)
;
}