]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
watchdog: mpc8xxx_wdt: Use dev_remap_addr()
authorPeng Fan <peng.fan@nxp.com>
Mon, 25 May 2026 03:51:49 +0000 (11:51 +0800)
committerStefan Roese <stefan.roese@mailbox.org>
Tue, 9 Jun 2026 09:51:19 +0000 (11:51 +0200)
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@nxp.com>
Reviewed-by: Stefan Roese <stefan.roese@mailbox.org>
drivers/watchdog/mpc8xxx_wdt.c

index 7fcb866f5742c0686bc8578b035870c755291aed..068f99c5fc6e8ff9be186e6ed95c9f36496dd082 100644 (file)
@@ -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;