summaryrefslogtreecommitdiff
path: root/drivers/pci/host/pci-imx6.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/pci/host/pci-imx6.c')
-rw-r--r--drivers/pci/host/pci-imx6.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/pci/host/pci-imx6.c b/drivers/pci/host/pci-imx6.c
index a4b3706a0d61..0d24dc4b6da5 100644
--- a/drivers/pci/host/pci-imx6.c
+++ b/drivers/pci/host/pci-imx6.c
@@ -1865,6 +1865,8 @@ static int imx6_pcie_probe(struct platform_device *pdev)
if (imx6_pcie->variant == IMX6QP) {
imx6_pcie->pcie_bus_regulator = devm_regulator_get(pp->dev,
"pcie-bus");
+ if (PTR_ERR(imx6_pcie->pcie_bus_regulator) == -EPROBE_DEFER)
+ return -EPROBE_DEFER;
if (IS_ERR(imx6_pcie->pcie_bus_regulator))
imx6_pcie->pcie_bus_regulator = NULL;
} else {