summaryrefslogtreecommitdiffstats
path: root/drivers/tty
diff options
context:
space:
mode:
authorMasahiro Yamada <yamada.masahiro@socionext.com>2016-10-24 17:00:28 +0900
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-10-27 16:01:31 +0200
commit09065c5f0f1ff4bfb309975e182b746989a869c5 (patch)
treef6254945d9a83611f9a4751b0b7122eaa8339da4 /drivers/tty
parent0ead21ad25f53117a1e39f0bddcb363e38886996 (diff)
downloadlinux-stable-09065c5f0f1ff4bfb309975e182b746989a869c5.tar.gz
linux-stable-09065c5f0f1ff4bfb309975e182b746989a869c5.tar.bz2
linux-stable-09065c5f0f1ff4bfb309975e182b746989a869c5.zip
serial: 8250_uniphier: fix clearing divisor latch access bit
At this point, 'value' is always a byte, then this code is clearing bit 15, which is already clear. I meant to clear bit 7. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com> Reported-by: Denys Vlasenko <dvlasenk@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty')
-rw-r--r--drivers/tty/serial/8250/8250_uniphier.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/tty/serial/8250/8250_uniphier.c b/drivers/tty/serial/8250/8250_uniphier.c
index a8babb0cf659..417d9e7038e1 100644
--- a/drivers/tty/serial/8250/8250_uniphier.c
+++ b/drivers/tty/serial/8250/8250_uniphier.c
@@ -99,7 +99,7 @@ static void uniphier_serial_out(struct uart_port *p, int offset, int value)
case UART_LCR:
valshift = UNIPHIER_UART_LCR_SHIFT;
/* Divisor latch access bit does not exist. */
- value &= ~(UART_LCR_DLAB << valshift);
+ value &= ~UART_LCR_DLAB;
/* fall through */
case UART_MCR:
offset = UNIPHIER_UART_LCR_MCR;