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>
rebase on v4.19
Signed-off-by: Vipul Kumar <vipul_kumar@mentor.com>
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))
- imx6_pcie->pcie_bus_regulator = NULL;
+ 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 {
+ }
/* Grab GPR config register range */
if (imx6_pcie->variant == IMX7D) {