Commit 20379c115ee4bc18628846ad627ed78d2f39ecc8
Committed by
Tom Rini
1 parent
4e34d61039
Exists in
v2017.01-smarct4x
and in
37 other branches
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>
Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff
drivers/serial/ns16550.c
... | ... | @@ -80,7 +80,7 @@ |
80 | 80 | #elif defined(CONFIG_SYS_NS16550_MEM32) && defined(CONFIG_SYS_BIG_ENDIAN) |
81 | 81 | return in_be32(addr); |
82 | 82 | #elif defined(CONFIG_SYS_BIG_ENDIAN) |
83 | - return readb(addr + (1 << reg_shift) - 1); | |
83 | + return readb(addr + (1 << shift) - 1); | |
84 | 84 | #else |
85 | 85 | return readb(addr); |
86 | 86 | #endif |