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>
This commit is contained in:
parent
4a301766f5
commit
89539f0306
|
@ -901,7 +901,7 @@ static int qcom_pcie_host_init(struct pcie_port *pp)
|
||||||
|
|
||||||
ret = pcie->ops->init(pcie);
|
ret = pcie->ops->init(pcie);
|
||||||
if (ret)
|
if (ret)
|
||||||
goto err_deinit;
|
return ret;
|
||||||
|
|
||||||
ret = phy_power_on(pcie->phy);
|
ret = phy_power_on(pcie->phy);
|
||||||
if (ret)
|
if (ret)
|
||||||
|
|
Loading…
Reference in New Issue