Browse Source

Merge tag 'ep93xx-fixes-for-3.8' of git://github.com/RyanMallon/linux-ep93xx into fixes

* tag 'ep93xx-fixes-for-3.8' of git://github.com/RyanMallon/linux-ep93xx:
  ARM: ep93xx: properly wait for UART FIFO to be empty
Olof Johansson 12 years ago
parent
commit
4d18391382
1 changed files with 3 additions and 7 deletions
  1. 3 7
      arch/arm/mach-ep93xx/include/mach/uncompress.h

+ 3 - 7
arch/arm/mach-ep93xx/include/mach/uncompress.h

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