Message ID | 20221205084044.19936-1-shangxiaojing@huawei.com (mailing list archive) |
---|---|
State | New, archived |
Delegated to: | Lorenzo Pieralisi |
Headers | show |
Series | PCI: fu740: Fix missing clk_disable_unprepare() in fu740_pcie_host_init() | expand |
diff --git a/drivers/pci/controller/dwc/pcie-fu740.c b/drivers/pci/controller/dwc/pcie-fu740.c index 0c90583c078b..6d5b7fdc0048 100644 --- a/drivers/pci/controller/dwc/pcie-fu740.c +++ b/drivers/pci/controller/dwc/pcie-fu740.c @@ -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; }
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 <shangxiaojing@huawei.com> --- drivers/pci/controller/dwc/pcie-fu740.c | 1 + 1 file changed, 1 insertion(+)