diff options
author | Alexey Pelykh <alexey.pelykh@gmail.com> | 2013-09-21 04:10:54 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-09-26 18:41:40 -0400 |
commit | 18d8519d35cb0b794d9b9c6f4ff7b97940a95bda (patch) | |
tree | 6e5b707a897c96716aeb5a0cac04c64bf26d9520 /drivers/tty | |
parent | 4250b5d9a47e8281b964935d5fee6a32d4ccdedb (diff) |
OMAP/serial: Fix Mode13 vs Mode16 priority
Make Mode16 more preferred than Mode13, to match TRM baudrates table.
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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/tty/serial/omap-serial.c b/drivers/tty/serial/omap-serial.c index 7e7da4066856..7b00520624f9 100644 --- a/drivers/tty/serial/omap-serial.c +++ b/drivers/tty/serial/omap-serial.c | |||
@@ -247,7 +247,7 @@ serial_omap_baud_is_mode16(struct uart_port *port, unsigned int baud) | |||
247 | if(baudAbsDiff16 < 0) | 247 | if(baudAbsDiff16 < 0) |
248 | baudAbsDiff16 = -baudAbsDiff16; | 248 | baudAbsDiff16 = -baudAbsDiff16; |
249 | 249 | ||
250 | return (baudAbsDiff13 > baudAbsDiff16); | 250 | return (baudAbsDiff13 >= baudAbsDiff16); |
251 | } | 251 | } |
252 | 252 | ||
253 | /* | 253 | /* |