aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/tty
diff options
context:
space:
mode:
authorAlexey Pelykh <alexey.pelykh@gmail.com>2013-09-21 04:04:35 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-09-26 18:41:39 -0400
commit4250b5d9a47e8281b964935d5fee6a32d4ccdedb (patch)
tree5cb680ca03301b2df24c213423caed7b144d9ad1 /drivers/tty
parent59f8a62c25b9c2a53e7c359ba9ca611639a4c0b0 (diff)
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')
-rw-r--r--drivers/tty/serial/omap-serial.c8
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)
258static unsigned int 258static unsigned int
259serial_omap_get_divisor(struct uart_port *port, unsigned int baud) 259serial_omap_get_divisor(struct uart_port *port, unsigned int baud)
260{ 260{
261 unsigned int divisor; 261 unsigned int mode;
262 262
263 if (!serial_omap_baud_is_mode16(port, baud)) 263 if (!serial_omap_baud_is_mode16(port, baud))
264 divisor = 13; 264 mode = 13;
265 else 265 else
266 divisor = 16; 266 mode = 16;
267 return port->uartclk/(baud * divisor); 267 return port->uartclk/(mode * baud);
268} 268}
269 269
270static void serial_omap_enable_ms(struct uart_port *port) 270static void serial_omap_enable_ms(struct uart_port *port)