[PATCH 2/2] mmc: cv1800b_sdhci: Use dev_read_addr_ptr()

Stefan Roese stefan.roese at mailbox.org
Wed May 27 14:31:06 CEST 2026


On 5/25/26 05:58, Peng Fan (OSS) wrote:
> From: Peng Fan <peng.fan at nxp.com>
> 
> Use dev_read_addr_ptr() which supports 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>

Reviewed-by: Stefan Roese <stefan.roese at mailbox.org>

Thanks,
Stefan

> ---
>   drivers/mmc/cv1800b_sdhci.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/mmc/cv1800b_sdhci.c b/drivers/mmc/cv1800b_sdhci.c
> index 72c5bfc6f35..b756649f90f 100644
> --- a/drivers/mmc/cv1800b_sdhci.c
> +++ b/drivers/mmc/cv1800b_sdhci.c
> @@ -85,7 +85,7 @@ static int cv1800b_sdhci_probe(struct udevice *dev)
>   	int ret;
>   
>   	host->name = dev->name;
> -	host->ioaddr = devfdt_get_addr_ptr(dev);
> +	host->ioaddr = dev_read_addr_ptr(dev);
>   
>   	upriv->mmc = &plat->mmc;
>   	host->mmc = &plat->mmc;
> 



More information about the U-Boot mailing list