mirror of
https://xff.cz/git/u-boot/
synced 2025-09-03 01:32:47 +02:00
common: stdio: Remove unused NEEDS_MANUAL_RELOC code bits
The last user of the NEEDS_MANUAL_RELOC has been removed in commit
26af162ac8
("arch: m68k: Implement relocation")
Remove now unused NEEDS_MANUAL_RELOC code.
Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
This commit is contained in:
@@ -293,18 +293,6 @@ int stdio_deregister_dev(struct stdio_dev *dev, int force)
|
|||||||
|
|
||||||
int stdio_init_tables(void)
|
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 */
|
/* Initialize the list */
|
||||||
INIT_LIST_HEAD(&devs.list);
|
INIT_LIST_HEAD(&devs.list);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user