[PATCH 1/3] watchdog: orion_wdt: use dev_read_addr_size_index()
Stefan Roese
stefan.roese at mailbox.org
Wed May 27 14:31:36 CEST 2026
On 5/25/26 05:51, Peng Fan (OSS) wrote:
> 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>
Reviewed-by: Stefan Roese <stefan.roese at mailbox.org>
Thanks,
Stefan
> ---
> 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;
>
>
More information about the U-Boot
mailing list