diff options
author | Eddie Huang <eddie.huang@mediatek.com> | 2014-10-22 21:12:07 +0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-11-06 14:57:25 -0800 |
commit | 2a768264eef098cc1355b02ca5023b6cfb183a1f (patch) | |
tree | f28fb3d93fc08248120d520ef9432c27992f90bd /drivers/tty/serial/atmel_serial.c | |
parent | 7645c2f4677198df449228a4736d7f94e5c14156 (diff) | |
download | op-kernel-dev-2a768264eef098cc1355b02ca5023b6cfb183a1f.zip op-kernel-dev-2a768264eef098cc1355b02ca5023b6cfb183a1f.tar.gz |
tty: serial: Fix mediatek UART driver setting baudrate issue
In mtk8250_set_termios function, calculating quot value can not be zero,
otherwise, using DIV_ROUND_CLOSEST(port->uartclk, quot * baud) will fail due to
divisor is zero.
Signed-off-by: Eddie Huang <eddie.huang@mediatek.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty/serial/atmel_serial.c')
0 files changed, 0 insertions, 0 deletions