]> Pileus Git - ~andy/linux/commitdiff
Merge tag 'ep93xx-fixes-for-3.8' of git://github.com/RyanMallon/linux-ep93xx into...
authorOlof Johansson <olof@lixom.net>
Tue, 18 Dec 2012 02:42:30 +0000 (18:42 -0800)
committerOlof Johansson <olof@lixom.net>
Tue, 18 Dec 2012 02:42:30 +0000 (18:42 -0800)
* tag 'ep93xx-fixes-for-3.8' of git://github.com/RyanMallon/linux-ep93xx:
  ARM: ep93xx: properly wait for UART FIFO to be empty

arch/arm/mach-ep93xx/include/mach/uncompress.h

index 16026c2b1c8c0f36843baf6378e0114a22b0fa03..d64274fc576058c466b8bb9dc30de9af0498334d 100644 (file)
@@ -47,13 +47,9 @@ static void __raw_writel(unsigned int value, unsigned int ptr)
 
 static inline void putc(int c)
 {
-       int i;
-
-       for (i = 0; i < 1000; i++) {
-               /* Transmit fifo not full?  */
-               if (!(__raw_readb(PHYS_UART_FLAG) & UART_FLAG_TXFF))
-                       break;
-       }
+       /* Transmit fifo not full?  */
+       while (__raw_readb(PHYS_UART_FLAG) & UART_FLAG_TXFF)
+               ;
 
        __raw_writeb(c, PHYS_UART_DATA);
 }