PCI: qcom: Allow ->post_init() to fail
authorBjorn Andersson <bjorn.andersson@linaro.org>
Sun, 16 Jul 2017 06:42:03 +0000 (23:42 -0700)
committerBjorn Helgaas <bhelgaas@google.com>
Thu, 3 Aug 2017 21:55:43 +0000 (16:55 -0500)
commit71cee8e1902a3c1d00e52dc022e1aff3ac2680d3
treef27610e3fed01fb2a007be6f74a2e948ba64ab01
parent89539f03061fc8aee120ea4a64d31da57d0045f2
PCI: qcom: Allow ->post_init() to fail

host_init() should detect and propagate errors from post_init().

In addition, by acknowledging that post_init() can fail we must disable the
post_init() resources in a step separate from the deinit, so that we don't
try to disable the post_init() resources a second time.

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