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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user