]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit4b353e81082a8f3d95e61b8634cb9fa5c9ec9dfa
tree5cf3b085df68fd285302e1bcf02a6f9349ee68b8
parent3ca8ddfa31afc7afc58d3cd118b8a281c641f0e5
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