Skip to content

Commit

Permalink
ARM: LPC32xx: serial.c: Fixed loop limit
Browse files Browse the repository at this point in the history
This patch fixes a wrong loop limit on UART init.

Signed-off-by: Roland Stigge <stigge@antcom.de>
Cc: stable@vger.kernel.org
  • Loading branch information
Roland Stigge committed Feb 27, 2012
1 parent 2707208 commit ff424aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/arm/mach-lpc32xx/serial.c
Original file line number Diff line number Diff line change
@@ -187,7 +187,7 @@ void __init lpc32xx_serial_init(void)

/* This needs to be done after all UART clocks are setup */
__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 */
puart = serial_std_platform_data[i].mapbase;
__raw_writel(0xC1, LPC32XX_UART_IIR_FCR(puart));

0 comments on commit ff424aa

Please sign in to comment.