Răsfoiți Sursa

PCI: qcom: Don't unroll init if ->init() fails

When the init op fails it will restore the state of the resources, so we
should not disable them one more time when this happens.

Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Acked-by: Stanimir Varbanov <svarbanov@mm-sol.com>
Bjorn Andersson 8 ani în urmă
părinte
comite
89539f0306
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  1. 1 1
      drivers/pci/dwc/pcie-qcom.c

+ 1 - 1
drivers/pci/dwc/pcie-qcom.c

@@ -901,7 +901,7 @@ static int qcom_pcie_host_init(struct pcie_port *pp)
 
 	ret = pcie->ops->init(pcie);
 	if (ret)
-		goto err_deinit;
+		return ret;
 
 	ret = phy_power_on(pcie->phy);
 	if (ret)