PCI: fu740: Fix missing clk_disable_unprepare() in fu740_pcie_host_init()
PATCH 1/1 PCI: fu740: Fix missing clk_disable_unprepare() in fu740_pcie_host_init()
The clk_disable_unprepare() should be called in the error handling of fu740_pcie_host_init().
Fixes e7e21b3a339b ("PCI: fu740: Add SiFive FU740 PCIe host controller driver")
Signed-off-by Shang XiaoJing <[email protected]>
--- drivers/pci/controller/dwc/pcie-fu740.c | 1 + 1 file changed, 1 insertion(+)
drivers/pci/controller/dwc/pcie-fu740.c +1 -0
@@ -261,6 +261,7 @@ static int fu740_pcie_host_init(struct dw_pcie_rp *pp) ret =reset_control_deassert (afp->rst);if (ret) {dev_err (dev,"unable to deassert pcie_power_up_rst_n\n" ); +clk_disable_unprepare (afp->pcie_aux);return ret; }
Signature · 1 line
2.17.1