summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTiberiu Breana <andrei-tiberiu.breana@nxp.com>2017-06-23 17:15:24 +0300
committerJason Liu <jason.hui.liu@nxp.com>2019-02-12 10:27:17 +0800
commitca1e602794b2be6a78ce54a28e65a26209f8d009 (patch)
tree6acceebf1c8dd7480a0f503081ae310a100c933d
parent89009fdda2a8b62f3381d7b5d11232fc67757fc0 (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>
-rw-r--r--drivers/pci/dwc/pci-imx6.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/drivers/pci/dwc/pci-imx6.c b/drivers/pci/dwc/pci-imx6.c
index a24df11743ea..0466976070a7 100644
--- a/drivers/pci/dwc/pci-imx6.c
+++ b/drivers/pci/dwc/pci-imx6.c
@@ -1867,10 +1867,14 @@ static int __init imx6_pcie_probe(struct platform_device *pdev)
return PTR_ERR(imx6_pcie->pcie);
}
- imx6_pcie->pcie_bus_regulator = devm_regulator_get(dev,
- "pcie-bus");
- if (IS_ERR(imx6_pcie->pcie_bus_regulator))
+ if (imx6_pcie->variant == IMX6QP) {
+ imx6_pcie->pcie_bus_regulator = devm_regulator_get(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) {