aboutsummaryrefslogtreecommitdiff
path: root/drivers/mmc/hi6220_dw_mmc.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/mmc/hi6220_dw_mmc.c')
-rw-r--r--drivers/mmc/hi6220_dw_mmc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mmc/hi6220_dw_mmc.c b/drivers/mmc/hi6220_dw_mmc.c
index 6de79243835..67d6a05b3b5 100644
--- a/drivers/mmc/hi6220_dw_mmc.c
+++ b/drivers/mmc/hi6220_dw_mmc.c
@@ -33,7 +33,7 @@ static int hi6220_dwmmc_ofdata_to_platdata(struct udevice *dev)
struct dwmci_host *host = &priv->host;
host->name = dev->name;
- host->ioaddr = (void *)devfdt_get_addr(dev);
+ host->ioaddr = dev_read_addr_ptr(dev);
host->buswidth = fdtdec_get_int(gd->fdt_blob, dev_of_offset(dev),
"bus-width", 4);