mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-26 15:28:50 +00:00
sf: 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:
parent
4f90349a2e
commit
7b8c61df20
1 changed files with 0 additions and 16 deletions
|
@ -96,22 +96,6 @@ static int spi_flash_post_bind(struct udevice *dev)
|
||||||
return log_msg_ret("bd", ret);
|
return log_msg_ret("bd", ret);
|
||||||
}
|
}
|
||||||
|
|
||||||
#if defined(CONFIG_NEEDS_MANUAL_RELOC)
|
|
||||||
struct dm_spi_flash_ops *ops = sf_get_ops(dev);
|
|
||||||
static int reloc_done;
|
|
||||||
|
|
||||||
if (!reloc_done) {
|
|
||||||
if (ops->read)
|
|
||||||
ops->read += gd->reloc_off;
|
|
||||||
if (ops->write)
|
|
||||||
ops->write += gd->reloc_off;
|
|
||||||
if (ops->erase)
|
|
||||||
ops->erase += gd->reloc_off;
|
|
||||||
|
|
||||||
reloc_done++;
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue