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>
This commit is contained in:
Alexey Pelykh 2013-09-21 04:10:54 -04:00 committed by Greg Kroah-Hartman
parent 4250b5d9a4
commit 18d8519d35

View File

@ -247,7 +247,7 @@ serial_omap_baud_is_mode16(struct uart_port *port, unsigned int baud)
if(baudAbsDiff16 < 0)
baudAbsDiff16 = -baudAbsDiff16;
return (baudAbsDiff13 > baudAbsDiff16);
return (baudAbsDiff13 >= baudAbsDiff16);
}
/*