From 20379c115ee4bc18628846ad627ed78d2f39ecc8 Mon Sep 17 00:00:00 2001 From: Axel Lin Date: Sat, 28 Feb 2015 15:55:36 +0800 Subject: [PATCH] serial: ns16550: Fix build error due to a typo Fix trivial typo. Acked-by: Simon Glass Signed-off-by: Axel Lin --- drivers/serial/ns16550.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/serial/ns16550.c b/drivers/serial/ns16550.c index eb00f1ca8a..03beab5a14 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 -- 2.25.1