PCI: qcom: Don't unroll init if ->init() fails
authorBjorn Andersson <bjorn.andersson@linaro.org>
Sun, 16 Jul 2017 06:41:53 +0000 (23:41 -0700)
committerBjorn Helgaas <bhelgaas@google.com>
Thu, 3 Aug 2017 21:55:43 +0000 (16:55 -0500)
commit89539f03061fc8aee120ea4a64d31da57d0045f2
tree5cf3b085df68fd285302e1bcf02a6f9349ee68b8
parent4a301766f5263dd94c1b95d1b1bbdf338afb1a37
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>
drivers/pci/dwc/pcie-qcom.c