mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-15 17:34:43 +00:00
timer: 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
09340a6616
commit
d66bea2915
1 changed files with 0 additions and 13 deletions
|
@ -51,19 +51,6 @@ unsigned long notrace timer_get_rate(struct udevice *dev)
|
|||
|
||||
static int timer_pre_probe(struct udevice *dev)
|
||||
{
|
||||
if (IS_ENABLED(CONFIG_NEEDS_MANUAL_RELOC) &&
|
||||
(gd->flags & GD_FLG_RELOC)) {
|
||||
struct timer_ops *ops = timer_get_ops(dev);
|
||||
static int reloc_done;
|
||||
|
||||
if (!reloc_done) {
|
||||
if (ops->get_count)
|
||||
MANUAL_RELOC(ops->get_count);
|
||||
|
||||
reloc_done++;
|
||||
}
|
||||
}
|
||||
|
||||
if (CONFIG_IS_ENABLED(OF_REAL)) {
|
||||
struct timer_dev_priv *uc_priv = dev_get_uclass_priv(dev);
|
||||
struct clk timer_clk;
|
||||
|
|
Loading…
Add table
Reference in a new issue