diff options
author | Alexey Pelykh <alexey.pelykh@gmail.com> | 2013-09-21 12:04:35 +0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-09-27 02:41:39 +0400 |
commit | 4250b5d9a47e8281b964935d5fee6a32d4ccdedb (patch) | |
tree | 5cb680ca03301b2df24c213423caed7b144d9ad1 /drivers/tty/serial/omap-serial.c | |
parent | 59f8a62c25b9c2a53e7c359ba9ca611639a4c0b0 (diff) | |
download | linux-4250b5d9a47e8281b964935d5fee6a32d4ccdedb.tar.xz |
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>
Diffstat (limited to 'drivers/tty/serial/omap-serial.c')
-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 816d1a23f9d0..7e7da4066856 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) |