]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
common: stdio: Remove unused NEEDS_MANUAL_RELOC code bits
authorMarek Vasut <marek.vasut+renesas@mailbox.org>
Wed, 6 Sep 2023 21:29:49 +0000 (23:29 +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>
common/stdio.c

index 894cbd3fb448f08c9e03a656df672fd5c35a0f85..010bf576af0a63c9d82908cfe72f52c70e32d1cc 100644 (file)
@@ -293,18 +293,6 @@ int stdio_deregister_dev(struct stdio_dev *dev, int force)
 
 int stdio_init_tables(void)
 {
-#if defined(CONFIG_NEEDS_MANUAL_RELOC)
-       /* already relocated for current ARM implementation */
-       ulong relocation_offset = gd->reloc_off;
-       int i;
-
-       /* relocate device name pointers */
-       for (i = 0; i < (sizeof (stdio_names) / sizeof (char *)); ++i) {
-               stdio_names[i] = (char *) (((ulong) stdio_names[i]) +
-                                               relocation_offset);
-       }
-#endif /* CONFIG_NEEDS_MANUAL_RELOC */
-
        /* Initialize the list */
        INIT_LIST_HEAD(&devs.list);