Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 89539f03 authored by Bjorn Andersson's avatar Bjorn Andersson Committed by Bjorn Helgaas
Browse files

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: default avatarBjorn Andersson <bjorn.andersson@linaro.org>
Signed-off-by: default avatarBjorn Helgaas <bhelgaas@google.com>
Acked-by: default avatarStanimir Varbanov <svarbanov@mm-sol.com>
parent 4a301766
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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)