ata: dwc_ahci: Use dev_read_addr_index()

Use dev_read_addr_index() 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@nxp.com>
This commit is contained in:
Peng Fan
2026-06-09 16:00:11 -06:00
committed by Tom Rini
parent ffbfe1cec3
commit 8d1d86ff58
+1 -1
View File
@@ -39,7 +39,7 @@ static int dwc_ahci_of_to_plat(struct udevice *dev)
priv->base = map_physmem(dev_read_addr(dev), sizeof(void *),
MAP_NOCACHE);
addr = devfdt_get_addr_index(dev, 1);
addr = dev_read_addr_index(dev, 1);
if (addr != FDT_ADDR_T_NONE) {
priv->wrapper_base = map_physmem(addr, sizeof(void *),
MAP_NOCACHE);