mmc: cv1800b_sdhci: Use dev_read_addr_ptr()
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>
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user