projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2707208
)
ARM: LPC32xx: serial.c: Fixed loop limit
author
Roland Stigge
<
[email protected]
>
Mon, 27 Feb 2012 16:28:03 +0000
(17:28 +0100)
committer
Roland Stigge
<
[email protected]
>
Mon, 27 Feb 2012 16:28:03 +0000
(17:28 +0100)
This patch fixes a wrong loop limit on UART init.
Signed-off-by: Roland Stigge <
[email protected]
>
Cc:
[email protected]
arch/arm/mach-lpc32xx/serial.c
patch
|
blob
|
history
diff --git
a/arch/arm/mach-lpc32xx/serial.c
b/arch/arm/mach-lpc32xx/serial.c
index 1a3fd4ce04692737ef23f911c868ee9775352369..f2735281616a1d8a9e008c09d7483fa637a314cf 100644
(file)
--- a/
arch/arm/mach-lpc32xx/serial.c
+++ b/
arch/arm/mach-lpc32xx/serial.c
@@
-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));