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

index a7548325265db7736fe783168a873f81dff7604c..9772578968bacc1f4f9d80974e29e09813298554 100644 (file)
@@ -127,36 +127,9 @@ static int uclass_cpu_init(struct uclass *uc)
        return ret;
 }
 
-static int uclass_cpu_post_bind(struct udevice *dev)
-{
-       if (IS_ENABLED(CONFIG_NEEDS_MANUAL_RELOC) &&
-           (gd->flags & GD_FLG_RELOC)) {
-               struct cpu_ops *ops = cpu_get_ops(dev);
-               static int reloc_done;
-
-               if (!reloc_done) {
-                       if (ops->get_desc)
-                               MANUAL_RELOC(ops->get_desc);
-                       if (ops->get_info)
-                               MANUAL_RELOC(ops->get_info);
-                       if (ops->get_count)
-                               MANUAL_RELOC(ops->get_count);
-                       if (ops->get_vendor)
-                               MANUAL_RELOC(ops->get_vendor);
-                       if (ops->is_current)
-                               MANUAL_RELOC(ops->is_current);
-
-                       reloc_done++;
-               }
-       }
-
-       return 0;
-}
-
 UCLASS_DRIVER(cpu) = {
        .id             = UCLASS_CPU,
        .name           = "cpu",
        .flags          = DM_UC_FLAG_SEQ_ALIAS,
        .init           = uclass_cpu_init,
-       .post_bind      = uclass_cpu_post_bind,
 };