summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@ingics.com>2015-02-28 15:55:36 +0800
committerTom Rini <trini@konsulko.com>2015-03-02 08:48:00 -0500
commit20379c115ee4bc18628846ad627ed78d2f39ecc8 (patch)
tree1226ccc01bb594db907fd34a98cf1db51d2f50f9
parent4e34d610390faca13ce9fc761577f5e7a3a8f52f (diff)
downloadu-boot-imx-20379c115ee4bc18628846ad627ed78d2f39ecc8.zip
u-boot-imx-20379c115ee4bc18628846ad627ed78d2f39ecc8.tar.gz
u-boot-imx-20379c115ee4bc18628846ad627ed78d2f39ecc8.tar.bz2
serial: ns16550: Fix build error due to a typo
Fix trivial typo. Acked-by: Simon Glass <sjg@chromium.org> Signed-off-by: Axel Lin <axel.lin@ingics.com>
-rw-r--r--drivers/serial/ns16550.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/serial/ns16550.c b/drivers/serial/ns16550.c
index eb00f1c..03beab5 100644
--- a/drivers/serial/ns16550.c
+++ b/drivers/serial/ns16550.c
@@ -80,7 +80,7 @@ static inline int serial_in_shift(unsigned char *addr, int shift)
#elif defined(CONFIG_SYS_NS16550_MEM32) && defined(CONFIG_SYS_BIG_ENDIAN)
return in_be32(addr);
#elif defined(CONFIG_SYS_BIG_ENDIAN)
- return readb(addr + (1 << reg_shift) - 1);
+ return readb(addr + (1 << shift) - 1);
#else
return readb(addr);
#endif