summaryrefslogtreecommitdiff
path: root/drivers/pci/controller/dwc/pci-imx6.c
diff options
context:
space:
mode:
authorOleksandr Suvorov <oleksandr.suvorov@toradex.com>2020-10-01 12:27:00 +0300
committerOleksandr Suvorov <oleksandr.suvorov@toradex.com>2021-01-27 20:58:49 +0200
commit2bf0f1c0881d00d2d4c5ed8ce2d99a36624bb510 (patch)
treee1f0635587587e4fe6f8f9c683d5c2c966333246 /drivers/pci/controller/dwc/pci-imx6.c
parentec0300a9c9396f2be72807ffba0c4550f0ae3a99 (diff)
PCI: pci-imx6: probe hsio mix on imx8mp only
The HSIO MIX uses by iMX8MP only, so preform probing the node fsl,imx8mp-hsio-mix this SoC only. Signed-off-by: Oleksandr Suvorov <oleksandr.suvorov@toradex.com>
Diffstat (limited to 'drivers/pci/controller/dwc/pci-imx6.c')
-rw-r--r--drivers/pci/controller/dwc/pci-imx6.c28
1 files changed, 14 insertions, 14 deletions
diff --git a/drivers/pci/controller/dwc/pci-imx6.c b/drivers/pci/controller/dwc/pci-imx6.c
index 15edcb6145a0..5d91746d1883 100644
--- a/drivers/pci/controller/dwc/pci-imx6.c
+++ b/drivers/pci/controller/dwc/pci-imx6.c
@@ -2420,22 +2420,22 @@ static int imx6_pcie_probe(struct platform_device *pdev)
/* Set NULL if there is no pcie-phy */
imx6_pcie->phy = NULL;
}
- }
- /* Find the HSIO MIX if one is defined, only imx8mp uses it */
- np = of_parse_phandle(node, "fsl,imx8mp-hsio-mix", 0);
- if (np) {
- struct resource res;
+ /* Find the HSIO MIX if one is defined, only imx8mp uses it */
+ np = of_parse_phandle(node, "fsl,imx8mp-hsio-mix", 0);
+ if (np) {
+ struct resource res;
- ret = of_address_to_resource(np, 0, &res);
- if (ret) {
- dev_err(dev, "Unable to find HSIO MIX res\n");
- return ret;
- }
- imx6_pcie->hsmix_base = devm_ioremap_resource(dev, &res);
- if (IS_ERR(imx6_pcie->hsmix_base)) {
- dev_err(dev, "Unable to map HSIO MIX res\n");
- return PTR_ERR(imx6_pcie->hsmix_base);
+ ret = of_address_to_resource(np, 0, &res);
+ if (ret) {
+ dev_err(dev, "Unable to find HSIO MIX res\n");
+ return ret;
+ }
+ imx6_pcie->hsmix_base = devm_ioremap_resource(dev, &res);
+ if (IS_ERR(imx6_pcie->hsmix_base)) {
+ dev_err(dev, "Unable to map HSIO MIX res\n");
+ return PTR_ERR(imx6_pcie->hsmix_base);
+ }
}
}