]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
mmc: cv1800b_sdhci: Use dev_read_addr_ptr()
authorPeng Fan <peng.fan@nxp.com>
Mon, 25 May 2026 03:58:03 +0000 (11:58 +0800)
committerPeng Fan <peng.fan@nxp.com>
Tue, 9 Jun 2026 15:55:56 +0000 (23:55 +0800)
Use dev_read_addr_ptr() which supports both live device tree and flat
DT backends, avoiding direct dependency on devfdt_* helpers.

No functional changes.

Reviewed-by: Stefan Roese <stefan.roese@mailbox.org>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
drivers/mmc/cv1800b_sdhci.c

index 72c5bfc6f359616acc68a8894a93c4cc54cf1661..b756649f90f3230a9790c9b9f82da47fd0f0a9a0 100644 (file)
@@ -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;