From: Peng Fan Date: Mon, 25 May 2026 03:51:47 +0000 (+0800) Subject: watchdog: orion_wdt: use dev_read_addr_size_index() X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3c3ba75c852e68d5f9a9b388935254a2b3e13bd3;p=thirdparty%2Fu-boot.git 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 Reviewed-by: Stefan Roese --- 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;