提交 db0c25f8 编写于 作者: S Shawn Guo 提交者: Lorenzo Pieralisi

PCI: histb: Fix error path of histb_pcie_host_enable()

If clk_prepare_enable() call fails on a particular clock, we should not
call clk_disable_unprepare() on this clock, but on the clocks that
succeed from clk_prepare_enable() previously.
Signed-off-by: NShawn Guo <shawn.guo@linaro.org>
Signed-off-by: NLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
上级 68e7c15c
...@@ -276,13 +276,12 @@ static int histb_pcie_host_enable(struct pcie_port *pp) ...@@ -276,13 +276,12 @@ static int histb_pcie_host_enable(struct pcie_port *pp)
return 0; return 0;
err_aux_clk: err_aux_clk:
clk_disable_unprepare(hipcie->aux_clk);
err_pipe_clk:
clk_disable_unprepare(hipcie->pipe_clk); clk_disable_unprepare(hipcie->pipe_clk);
err_sys_clk: err_pipe_clk:
clk_disable_unprepare(hipcie->sys_clk); clk_disable_unprepare(hipcie->sys_clk);
err_bus_clk: err_sys_clk:
clk_disable_unprepare(hipcie->bus_clk); clk_disable_unprepare(hipcie->bus_clk);
err_bus_clk:
return ret; return ret;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册