diff options
| author | Peng Fan <[email protected]> | 2026-05-25 11:51:47 +0800 |
|---|---|---|
| committer | Stefan Roese <[email protected]> | 2026-06-09 11:51:19 +0200 |
| commit | 3c3ba75c852e68d5f9a9b388935254a2b3e13bd3 (patch) | |
| tree | 0b427c1b1c620492adc071457fa89e7a001ec886 /drivers | |
| parent | 3abd953da8c322f5e76b4909b37bd7a9d050d9e9 (diff) | |
watchdog: orion_wdt: use dev_read_addr_size_index()
Replace devfdt_read_addr_size_index() with dev_read_addr_size_index() when
retrieving the register base address.
dev_read_addr_size_index() 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]>
Reviewed-by: Stefan Roese <[email protected]>
Diffstat (limited to 'drivers')
| -rw-r--r-- | drivers/watchdog/orion_wdt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/watchdog/orion_wdt.c b/drivers/watchdog/orion_wdt.c index 5e89303d284..5a6cad135aa 100644 --- a/drivers/watchdog/orion_wdt.c +++ b/drivers/watchdog/orion_wdt.c @@ -193,7 +193,7 @@ static inline bool save_reg_from_ofdata(struct udevice *dev, int index, fdt_addr_t addr; fdt_size_t off; - addr = devfdt_get_addr_size_index(dev, index, &off); + addr = dev_read_addr_size_index(dev, index, &off); if (addr == FDT_ADDR_T_NONE) return false; |
