PCI: imx6: Propagate .host_init() errors to caller
authorRichard Zhu <hongxing.zhu@nxp.com>
Thu, 14 Jul 2022 07:30:59 +0000 (15:30 +0800)
committerBjorn Helgaas <bhelgaas@google.com>
Mon, 1 Aug 2022 20:33:32 +0000 (15:33 -0500)
commit9751f65db025a19a8f73e0531240b1d21a12139c
tree57a70a3abc4c068ebfb49bd1de972d99e786e558
parent835fe229d7099dc07f34f16780cbad9081da7bf1
PCI: imx6: Propagate .host_init() errors to caller

Since dw_pcie_host_init() checks for errors from ops->host_init(),
check for errors when enabling power regulators and clocks and return them.

[bhelgaas: commit log]
Link: https://lore.kernel.org/r/1657783869-19194-8-git-send-email-hongxing.zhu@nxp.com
Signed-off-by: Richard Zhu <hongxing.zhu@nxp.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Lucas Stach <l.stach@pengutronix.de>
drivers/pci/controller/dwc/pci-imx6.c