summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlof Johansson2012-12-18 03:42:30 +0100
committerOlof Johansson2012-12-18 03:42:30 +0100
commit4d1839138220e7e35bf9e31c854e4e0196dea7a1 (patch)
treea091381c05875e63c6c0eea760f382ef443aa91f
parentMerge tag 'imx-fixes-rc' of git://git.pengutronix.de/git/imx/linux-2.6 into f... (diff)
parentARM: ep93xx: properly wait for UART FIFO to be empty (diff)
downloadkernel-qcow2-linux-4d1839138220e7e35bf9e31c854e4e0196dea7a1.tar.gz
kernel-qcow2-linux-4d1839138220e7e35bf9e31c854e4e0196dea7a1.tar.xz
kernel-qcow2-linux-4d1839138220e7e35bf9e31c854e4e0196dea7a1.zip
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
-rw-r--r--arch/arm/mach-ep93xx/include/mach/uncompress.h10
1 files changed, 3 insertions, 7 deletions
diff --git a/arch/arm/mach-ep93xx/include/mach/uncompress.h b/arch/arm/mach-ep93xx/include/mach/uncompress.h
index 16026c2b1c8c..d64274fc5760 100644
--- a/arch/arm/mach-ep93xx/include/mach/uncompress.h
+++ b/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);
}