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

Neil Armstrong neil.armstrong at linaro.org
Tue May 26 09:03:33 CEST 2026


On 5/26/26 10:09, Peng Fan (OSS) wrote:
> 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;
>   
> 

Reviewed-by: Neil Armstrong <neil.armstrong at linaro.org>

Thanks,
Neil


More information about the U-Boot mailing list