Skip to content
Snippets Groups Projects
Commit 20379c11 authored by Axel Lin's avatar Axel Lin Committed by Tom Rini
Browse files

serial: ns16550: Fix build error due to a typo


Fix trivial typo.

Acked-by: default avatarSimon Glass <sjg@chromium.org>
Signed-off-by: default avatarAxel Lin <axel.lin@ingics.com>
parent 4e34d610
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment