[PATCH 2/3] watchdog: rti: Use dev_read_addr_ptr()
Stefan Roese
stefan.roese at mailbox.org
Tue Jun 9 12:53:14 CEST 2026
On 5/25/26 11:51, Peng Fan (OSS) wrote:
> From: Peng Fan <peng.fan at nxp.com>
>
> devfdt_get_addr() returns FDT_ADDR_T_NONE(-1UL) when fail, using
> "!priv->regs" to check return value is wrong.
>
> Replace devfdt_read_addr() with dev_read_addr_ptr() when retrieving the
> register base address.
>
> dev_read_addr_ptr() supports both live device tree and flat DT backends,
> avoiding direct dependency on devfdt_* helpers.
>
> Also use "void __iomem *" to replace "phys_addr_t" to avoid type
> casting.
>
> No functional changes.
>
> Signed-off-by: Peng Fan <peng.fan at nxp.com>
Applied to u-boot-watchdog/next
Thanks,
Stefan
More information about the U-Boot
mailing list