[PATCH 1/3] watchdog: orion_wdt: use dev_read_addr_size_index()
Peng Fan (OSS)
peng.fan at oss.nxp.com
Mon May 25 05:51:47 CEST 2026
From: Peng Fan <peng.fan at nxp.com>
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 <peng.fan at nxp.com>
---
drivers/watchdog/orion_wdt.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/watchdog/orion_wdt.c b/drivers/watchdog/orion_wdt.c
index a2000b968c9..c9bd40c8d8f 100644
--- a/drivers/watchdog/orion_wdt.c
+++ b/drivers/watchdog/orion_wdt.c
@@ -119,7 +119,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;
--
2.51.0
More information about the U-Boot
mailing list