summaryrefslogtreecommitdiff
path: root/drivers/pci/host/pci-imx6.c
diff options
context:
space:
mode:
authorTiberiu Breana <andrei-tiberiu.breana@nxp.com>2017-06-23 17:15:24 +0300
committerLeonard Crestez <leonard.crestez@nxp.com>2018-08-24 12:41:33 +0300
commit5f0657333941f139a1eb919ee1f113dfa7fef671 (patch)
tree25be79dc22ba3215f2350c9923a9d7141be780c2 /drivers/pci/host/pci-imx6.c
parent72e182501941a750c980144c3b4e8a6647a10057 (diff)
MLK-15351: PCI: imx: Only use pcie_bus_regulator for iMX6QP
The pcie_bus_regulator is only used by the iMX6QP board, so only request the regulator for this variant. Signed-off-by: Tiberiu Breana <andrei-tiberiu.breana@nxp.com>
Diffstat (limited to 'drivers/pci/host/pci-imx6.c')
-rw-r--r--drivers/pci/host/pci-imx6.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/drivers/pci/host/pci-imx6.c b/drivers/pci/host/pci-imx6.c
index 249e43a7661f..2fd3f6e2e03c 100644
--- a/drivers/pci/host/pci-imx6.c
+++ b/drivers/pci/host/pci-imx6.c
@@ -1807,10 +1807,14 @@ static int imx6_pcie_probe(struct platform_device *pdev)
return PTR_ERR(imx6_pcie->pcie);
}
- imx6_pcie->pcie_bus_regulator = devm_regulator_get(pp->dev,
- "pcie-bus");
- if (IS_ERR(imx6_pcie->pcie_bus_regulator))
+ if (imx6_pcie->variant == IMX6QP) {
+ imx6_pcie->pcie_bus_regulator = devm_regulator_get(pp->dev,
+ "pcie-bus");
+ if (IS_ERR(imx6_pcie->pcie_bus_regulator))
+ imx6_pcie->pcie_bus_regulator = NULL;
+ } else {
imx6_pcie->pcie_bus_regulator = NULL;
+ }
/* Grab GPR config register range */
if (imx6_pcie->variant == IMX7D) {