]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
hwspinlock: Remove unused NEEDS_MANUAL_RELOC code bits
authorMarek Vasut <marek.vasut+renesas@mailbox.org>
Wed, 6 Sep 2023 21:30:04 +0000 (23:30 +0200)
committerTom Rini <trini@konsulko.com>
Thu, 14 Sep 2023 14:42:24 +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/hwspinlock/hwspinlock-uclass.c

index e012d5a4c935ffb8856e4754d2aae347ae1e70ae..e9a4d7f9fbbd66297f7b146f06d793ce5a97590c 100644 (file)
@@ -123,28 +123,7 @@ int hwspinlock_unlock(struct hwspinlock *hws)
        return ops->unlock(hws->dev, hws->id);
 }
 
-static int hwspinlock_post_bind(struct udevice *dev)
-{
-#if defined(CONFIG_NEEDS_MANUAL_RELOC)
-       struct hwspinlock_ops *ops = device_get_ops(dev);
-       static int reloc_done;
-
-       if (!reloc_done) {
-               if (ops->lock)
-                       ops->lock += gd->reloc_off;
-               if (ops->unlock)
-                       ops->unlock += gd->reloc_off;
-               if (ops->relax)
-                       ops->relax += gd->reloc_off;
-
-               reloc_done++;
-       }
-#endif
-       return 0;
-}
-
 UCLASS_DRIVER(hwspinlock) = {
        .id             = UCLASS_HWSPINLOCK,
        .name           = "hwspinlock",
-       .post_bind      = hwspinlock_post_bind,
 };