mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
serial: mxs-auart: Fix missing clk_disable_unprepare() on error in mxs_get_clks()
Commit 5d7519dfc9 ("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 <[email protected]>
Reviewed-by: Fabio Estevam <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
This commit is contained in:
parent
fadb424408
commit
1664bc40d3
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue