diff options
author | Roland Stigge <stigge@antcom.de> | 2012-02-27 11:28:03 -0500 |
---|---|---|
committer | Roland Stigge <stigge@antcom.de> | 2012-02-27 11:28:03 -0500 |
commit | ff424aa4c89d19082e8ae5a3351006bc8a4cd91b (patch) | |
tree | c26dc1510faae92c75e9673a6aabef1bbbe00184 /arch/arm/mach-lpc32xx/serial.c | |
parent | 2707208ee8a80dbbd5426f5aa1a934f766825bb5 (diff) |
ARM: LPC32xx: serial.c: Fixed loop limit
This patch fixes a wrong loop limit on UART init.
Signed-off-by: Roland Stigge <stigge@antcom.de>
Cc: stable@vger.kernel.org
Diffstat (limited to 'arch/arm/mach-lpc32xx/serial.c')
-rw-r--r-- | arch/arm/mach-lpc32xx/serial.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-lpc32xx/serial.c b/arch/arm/mach-lpc32xx/serial.c index 1a3fd4ce0469..f2735281616a 100644 --- a/arch/arm/mach-lpc32xx/serial.c +++ b/arch/arm/mach-lpc32xx/serial.c | |||
@@ -187,7 +187,7 @@ void __init lpc32xx_serial_init(void) | |||
187 | 187 | ||
188 | /* This needs to be done after all UART clocks are setup */ | 188 | /* This needs to be done after all UART clocks are setup */ |
189 | __raw_writel(clkmodes, LPC32XX_UARTCTL_CLKMODE); | 189 | __raw_writel(clkmodes, LPC32XX_UARTCTL_CLKMODE); |
190 | for (i = 0; i < ARRAY_SIZE(uartinit_data) - 1; i++) { | 190 | for (i = 0; i < ARRAY_SIZE(uartinit_data); i++) { |
191 | /* Force a flush of the RX FIFOs to work around a HW bug */ | 191 | /* Force a flush of the RX FIFOs to work around a HW bug */ |
192 | puart = serial_std_platform_data[i].mapbase; | 192 | puart = serial_std_platform_data[i].mapbase; |
193 | __raw_writel(0xC1, LPC32XX_UART_IIR_FCR(puart)); | 193 | __raw_writel(0xC1, LPC32XX_UART_IIR_FCR(puart)); |