diff options
| author | Peng Fan <[email protected]> | 2026-05-26 15:46:16 +0800 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2026-06-09 16:00:11 -0600 |
| commit | 8d1d86ff58be46e17bb59b97c2ddc03f167acd05 (patch) | |
| tree | 886a33e1ec3fdb7cbfe0877edf6a404847efee90 /drivers/ata | |
| parent | ffbfe1cec387e35eadf522e4a7d6ffdba956158b (diff) | |
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 <[email protected]>
Diffstat (limited to 'drivers/ata')
| -rw-r--r-- | drivers/ata/dwc_ahci.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/ata/dwc_ahci.c b/drivers/ata/dwc_ahci.c index b480cde4465..0431d370716 100644 --- a/drivers/ata/dwc_ahci.c +++ b/drivers/ata/dwc_ahci.c @@ -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); |
