From: Bjorn Andersson Date: Sun, 16 Jul 2017 06:41:53 +0000 (-0700) Subject: PCI: qcom: Don't unroll init if ->init() fails X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=89539f03061fc8aee120ea4a64d31da57d0045f2;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 Signed-off-by: Bjorn Helgaas Acked-by: Stanimir Varbanov --- diff --git a/drivers/pci/dwc/pcie-qcom.c b/drivers/pci/dwc/pcie-qcom.c index d15657dc3990..7b703741a3fd 100644 --- a/drivers/pci/dwc/pcie-qcom.c +++ b/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)