]> git.baikalelectronics.ru Git - kernel.git/commit
serial: mxs-auart: Fix missing clk_disable_unprepare() on error in mxs_get_clks()
authorWei Yongjun <weiyongjun1@huawei.com>
Sat, 17 Sep 2016 01:13:46 +0000 (01:13 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 22 Sep 2016 09:45:08 +0000 (11:45 +0200)
commit0e395ad32cc1972267a87240b51f3949b23577ca
treef4e4cb8a04948699beca7b4562c12aa0d4348e16
parent7eae60376e3778d67875cd64519b35925525429e
serial: mxs-auart: Fix missing clk_disable_unprepare() on error in mxs_get_clks()

Commit 30ca7cec5316 ("serial: mxs-auart: Disable clock on error path")
try to disable clock on error path, but still missing the clk_set_rate()
error handling path.

Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Reviewed-by: Fabio Estevam <fabio.estevam@nxp.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/mxs-auart.c