UPSTREAM: serial: samsung: Fixed wrong comparison for baudclk_rate
authorKyoungil Kim <ki0351.kim@samsung.com>
Sun, 20 May 2012 08:49:31 +0000 (17:49 +0900)
committerGerrit <chrome-bot@google.com>
Sat, 22 Sep 2012 00:26:01 +0000 (17:26 -0700)
commite2f7c4159fe79b3c1c016a857a135b61fae18bc8
treeb95670c75b3ed73f09caba10352f23c0d5b5173a
parentc3669db43fb608eafa0d3fde5550fb3121a04d20
UPSTREAM: serial: samsung: Fixed wrong comparison for baudclk_rate

port->baudclk_rate should be compared to the rate of port->baudclk,
because port->baudclk_rate was assigned as the rate of port->baudclk previously.
So to check that the current baudclk rate is same as previous rate,
the target of comparison sholud be the rate of port->baudclk.

BUG=None
TEST=Built and booted on one board.

Signed-off-by: Naveen Krishna Chatradhi <naveen@chromium.org>
(Landed on linux-next on Sun May 20, cherry picked from commit
25f04ad423e5eb40c33a904db5a0d2c7e3bf08f5)

Change-Id: Iae21f911f63ad483289fbd85a3123a609e7aa50d
Signed-off-by: Jun-Ho, Yoon <junho78.yoon@samsung.com>
Signed-off-by: Kyoungil Kim <ki0351.kim@samsung.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Reviewed-on: https://gerrit.chromium.org/gerrit/33419
Tested-by: naveen krishna chatradhi <naveen@chromium.org>
Reviewed-by: Arjun.K.V <arjun.kv@samsung.com>
Commit-Ready: Doug Anderson <dianders@chromium.org>
Reviewed-by: Doug Anderson <dianders@chromium.org>
Tested-by: Doug Anderson <dianders@chromium.org>
drivers/tty/serial/samsung.c