diff options
author | Alexey Pelykh <alexey.pelykh@gmail.com> | 2013-09-21 04:04:35 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-09-26 15:41:39 -0700 |
commit | 4250b5d9a47e8281b964935d5fee6a32d4ccdedb (patch) | |
tree | 5cb680ca03301b2df24c213423caed7b144d9ad1 | |
parent | 59f8a62c25b9c2a53e7c359ba9ca611639a4c0b0 (diff) | |
download | op-kernel-dev-4250b5d9a47e8281b964935d5fee6a32d4ccdedb.zip op-kernel-dev-4250b5d9a47e8281b964935d5fee6a32d4ccdedb.tar.gz |
OMAP/serial: Fix misnamed variable
Fix misnamed variable to eliminate confusion.
Signed-off-by: Alexey Pelykh <alexey.pelykh@gmail.com>
Cc: Tony Lindgren <tony@atomide.com>
Cc: Felipe Balbi <balbi@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | drivers/tty/serial/omap-serial.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/tty/serial/omap-serial.c b/drivers/tty/serial/omap-serial.c index 816d1a2..7e7da40 100644 --- a/drivers/tty/serial/omap-serial.c +++ b/drivers/tty/serial/omap-serial.c @@ -258,13 +258,13 @@ serial_omap_baud_is_mode16(struct uart_port *port, unsigned int baud) static unsigned int serial_omap_get_divisor(struct uart_port *port, unsigned int baud) { - unsigned int divisor; + unsigned int mode; if (!serial_omap_baud_is_mode16(port, baud)) - divisor = 13; + mode = 13; else - divisor = 16; - return port->uartclk/(baud * divisor); + mode = 16; + return port->uartclk/(mode * baud); } static void serial_omap_enable_ms(struct uart_port *port) |