]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
sysreset: Remove unused NEEDS_MANUAL_RELOC code bits
authorMarek Vasut <marek.vasut+renesas@mailbox.org>
Wed, 6 Sep 2023 21:30:12 +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/sysreset/sysreset-uclass.c

index 279b087d16defe9107c0510877db5653d2dc0582..6151b5fe03e4e7377cebaa56ffd526e6df06089d 100644 (file)
@@ -158,23 +158,7 @@ int do_poweroff(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 }
 #endif
 
-static int sysreset_post_bind(struct udevice *dev)
-{
-#if defined(CONFIG_NEEDS_MANUAL_RELOC)
-       struct sysreset_ops *ops = sysreset_get_ops(dev);
-       static int reloc_done;
-
-       if (!reloc_done) {
-               if (ops->request)
-                       ops->request += gd->reloc_off;
-               reloc_done++;
-       }
-#endif
-       return 0;
-}
-
 UCLASS_DRIVER(sysreset) = {
        .id             = UCLASS_SYSRESET,
        .name           = "sysreset",
-       .post_bind      = sysreset_post_bind,
 };