[PATCH 4/5] pci: imx: Use dev_read_addr_index_ptr()

Peng Fan (OSS) peng.fan at oss.nxp.com
Tue May 26 10:09:12 CEST 2026


From: Peng Fan <peng.fan at nxp.com>

Use dev_read_addr_index_ptr() which support both live device tree and flat
DT backends, avoiding direct dependency on devfdt_* helpers.

No functional changes

Signed-off-by: Peng Fan <peng.fan at nxp.com>
---
 drivers/pci/pcie_imx.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/pci/pcie_imx.c b/drivers/pci/pcie_imx.c
index 8d853ecf2c2..c8b8e171e39 100644
--- a/drivers/pci/pcie_imx.c
+++ b/drivers/pci/pcie_imx.c
@@ -774,8 +774,8 @@ static int imx_pcie_of_to_plat(struct udevice *dev)
 {
 	struct imx_pcie_priv *priv = dev_get_priv(dev);
 
-	priv->dbi_base = devfdt_get_addr_index_ptr(dev, 0);
-	priv->cfg_base = devfdt_get_addr_index_ptr(dev, 1);
+	priv->dbi_base = dev_read_addr_index_ptr(dev, 0);
+	priv->cfg_base = dev_read_addr_index_ptr(dev, 1);
 	if (!priv->dbi_base || !priv->cfg_base)
 		return -EINVAL;
 

-- 
2.51.0



More information about the U-Boot mailing list