]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
timer: orion: Use dev_remap_addr_index()
authorPeng Fan <peng.fan@nxp.com>
Tue, 26 May 2026 07:53:06 +0000 (15:53 +0800)
committerStefan Roese <stefan.roese@mailbox.org>
Wed, 10 Jun 2026 09:23:26 +0000 (11:23 +0200)
Use dev_remap_addr_index() 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>
drivers/timer/orion-timer.c

index 821b681a232602b599880bf7714eca7005e2c70e..4d1c6b5cef21569fee91e3c259d67a171973374e 100644 (file)
@@ -2,6 +2,7 @@
 #include <asm/io.h>
 #include <config.h>
 #include <div64.h>
+#include <dm.h>
 #include <dm/device.h>
 #include <dm/fdtaddr.h>
 #include <timer.h>
@@ -113,7 +114,7 @@ static int orion_timer_probe(struct udevice *dev)
        enum input_clock_type type = dev_get_driver_data(dev);
        struct orion_timer_priv *priv = dev_get_priv(dev);
 
-       priv->base = devfdt_remap_addr_index(dev, 0);
+       priv->base = dev_remap_addr_index(dev, 0);
        if (!priv->base) {
                debug("unable to map registers\n");
                return -ENOMEM;