mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2025-04-04 22:57:30 +03:00
ar71xx: fix trailing statements location
Signed-off-by: Arnaud Lacombe <lacombar@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@23976 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
b6dbd83901
commit
6be076283d
@ -157,10 +157,12 @@ EXPORT_SYMBOL_GPL(ar71xx_device_stopped);
|
|||||||
void ar71xx_ddr_flush(u32 reg)
|
void ar71xx_ddr_flush(u32 reg)
|
||||||
{
|
{
|
||||||
ar71xx_ddr_wr(reg, 1);
|
ar71xx_ddr_wr(reg, 1);
|
||||||
while ((ar71xx_ddr_rr(reg) & 0x1));
|
while ((ar71xx_ddr_rr(reg) & 0x1))
|
||||||
|
;
|
||||||
|
|
||||||
ar71xx_ddr_wr(reg, 1);
|
ar71xx_ddr_wr(reg, 1);
|
||||||
while ((ar71xx_ddr_rr(reg) & 0x1));
|
while ((ar71xx_ddr_rr(reg) & 0x1))
|
||||||
|
;
|
||||||
}
|
}
|
||||||
EXPORT_SYMBOL_GPL(ar71xx_ddr_flush);
|
EXPORT_SYMBOL_GPL(ar71xx_ddr_flush);
|
||||||
|
|
||||||
|
@ -23,8 +23,10 @@
|
|||||||
|
|
||||||
void prom_putchar(unsigned char ch)
|
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);
|
UART_WRITE(UART_TX, ch);
|
||||||
while (((UART_READ(UART_LSR)) & UART_LSR_THRE) == 0);
|
while (((UART_READ(UART_LSR)) & UART_LSR_THRE) == 0)
|
||||||
|
;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user