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:
Bjorn Andersson 2017-07-15 23:41:53 -07:00 committed by Bjorn Helgaas
parent 4a301766f5
commit 89539f0306
1 changed files with 1 additions and 1 deletions

View File

@ -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)