[PATCH 3/3] watchdog: mpc8xxx_wdt: Use dev_remap_addr()

Stefan Roese stefan.roese at mailbox.org
Wed May 27 14:32:07 CEST 2026


On 5/25/26 05:51, Peng Fan (OSS) wrote:
> From: Peng Fan <peng.fan at nxp.com>
> 
> Use dev_remap_addr() to replace devfdt_remap_addr which 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/mpc8xxx_wdt.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/watchdog/mpc8xxx_wdt.c b/drivers/watchdog/mpc8xxx_wdt.c
> index 7fcb866f574..068f99c5fc6 100644
> --- a/drivers/watchdog/mpc8xxx_wdt.c
> +++ b/drivers/watchdog/mpc8xxx_wdt.c
> @@ -81,7 +81,7 @@ static int mpc8xxx_wdt_of_to_plat(struct udevice *dev)
>   {
>   	struct mpc8xxx_wdt_priv *priv = dev_get_priv(dev);
>   
> -	priv->base = (void __iomem *)devfdt_remap_addr(dev);
> +	priv->base = (void __iomem *)dev_remap_addr(dev);
>   
>   	if (!priv->base)
>   		return -EINVAL;
> 



More information about the U-Boot mailing list