提交 1664bc40 编写于 作者: W Wei Yongjun 提交者: Greg Kroah-Hartman

serial: mxs-auart: Fix missing clk_disable_unprepare() on error in mxs_get_clks()

Commit 5d7519df ("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: NWei Yongjun <weiyongjun1@huawei.com>
Reviewed-by: NFabio Estevam <fabio.estevam@nxp.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 fadb4244
......@@ -1534,7 +1534,7 @@ static int mxs_get_clks(struct mxs_auart_port *s,
err = clk_set_rate(s->clk, clk_get_rate(s->clk_ahb));
if (err) {
dev_err(s->dev, "Failed to set rate!\n");
return err;
goto disable_clk_ahb;
}
err = clk_prepare_enable(s->clk);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册