Commit 280e54b1 authored by Roland Stigge's avatar Roland Stigge Committed by Greg Kroah-Hartman

ARM: LPC32xx: serial.c: Fixed loop limit

commit ff424aa4 upstream.

This patch fixes a wrong loop limit on UART init.
Signed-off-by: default avatarRoland Stigge <stigge@antcom.de>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent fd3fb91a
...@@ -187,7 +187,7 @@ void __init lpc32xx_serial_init(void) ...@@ -187,7 +187,7 @@ void __init lpc32xx_serial_init(void)
/* This needs to be done after all UART clocks are setup */ /* This needs to be done after all UART clocks are setup */
__raw_writel(clkmodes, LPC32XX_UARTCTL_CLKMODE); __raw_writel(clkmodes, LPC32XX_UARTCTL_CLKMODE);
for (i = 0; i < ARRAY_SIZE(uartinit_data) - 1; i++) { for (i = 0; i < ARRAY_SIZE(uartinit_data); i++) {
/* Force a flush of the RX FIFOs to work around a HW bug */ /* Force a flush of the RX FIFOs to work around a HW bug */
puart = serial_std_platform_data[i].mapbase; puart = serial_std_platform_data[i].mapbase;
__raw_writel(0xC1, LPC32XX_UART_IIR_FCR(puart)); __raw_writel(0xC1, LPC32XX_UART_IIR_FCR(puart));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment