]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
timer: Remove unused NEEDS_MANUAL_RELOC code bits
authorMarek Vasut <marek.vasut+renesas@mailbox.org>
Wed, 6 Sep 2023 21:30:13 +0000 (23:30 +0200)
committerTom Rini <trini@konsulko.com>
Thu, 14 Sep 2023 14:42:25 +0000 (10:42 -0400)
The last user of the NEEDS_MANUAL_RELOC has been removed in commit
26af162ac8f8 ("arch: m68k: Implement relocation")
Remove now unused NEEDS_MANUAL_RELOC code.

Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
drivers/timer/timer-uclass.c

index f4b871ac23aaf16422ad0698c11cf0283631c58b..0c2018bfe3b0c2b7f6d0d833e8918d6e963c8709 100644 (file)
@@ -51,19 +51,6 @@ unsigned long notrace timer_get_rate(struct udevice *dev)
 
 static int timer_pre_probe(struct udevice *dev)
 {
-       if (IS_ENABLED(CONFIG_NEEDS_MANUAL_RELOC) &&
-           (gd->flags & GD_FLG_RELOC)) {
-               struct timer_ops *ops = timer_get_ops(dev);
-               static int reloc_done;
-
-               if (!reloc_done) {
-                       if (ops->get_count)
-                               MANUAL_RELOC(ops->get_count);
-
-                       reloc_done++;
-               }
-       }
-
        if (CONFIG_IS_ENABLED(OF_REAL)) {
                struct timer_dev_priv *uc_priv = dev_get_uclass_priv(dev);
                struct clk timer_clk;