Skip to contentSkip to conversation

serial: ns16550: Fix build error due to a typo

PATCH New Axel Lin 3 participants 3 messages Feb 28, 2015 – Mar 2, 2015

lore
Share & tools
lore

Axel Lin

author
#0 lore raw

PATCH 1/1 serial: ns16550: Fix build error due to a typo

Fix trivial typo.

---
 drivers/serial/ns16550.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/serial/ns16550.c +1 -1
index eb00f1c..03beab5 100644
@@ -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
Signature · 1 line
1.9.1
#2 lore raw

PATCH 1/1 serial: ns16550: Fix build error due to a typo

In reply to Axel Lin
Quoted 4 lines · Axel Lin

Fix trivial typo.

Applied to u-boot/master, thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20150302/95b3646f/attachment.sig>