]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
net: eth: Remove unused NEEDS_MANUAL_RELOC code bits
authorMarek Vasut <marek.vasut+renesas@mailbox.org>
Wed, 6 Sep 2023 21:30:07 +0000 (23:30 +0200)
committerTom Rini <trini@konsulko.com>
Thu, 14 Sep 2023 14:42:25 +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>
net/eth-uclass.c

index c393600fabcda95f04c6820ac4c7cad260b740ad..4311f3fe6e8935625d1d3002e1f2e0ac3d16e17d 100644 (file)
@@ -556,32 +556,6 @@ static int eth_post_probe(struct udevice *dev)
        unsigned char env_enetaddr[ARP_HLEN];
        char *source = "DT";
 
-#if defined(CONFIG_NEEDS_MANUAL_RELOC)
-       struct eth_ops *ops = eth_get_ops(dev);
-       static int reloc_done;
-
-       if (!reloc_done) {
-               if (ops->start)
-                       ops->start += gd->reloc_off;
-               if (ops->send)
-                       ops->send += gd->reloc_off;
-               if (ops->recv)
-                       ops->recv += gd->reloc_off;
-               if (ops->free_pkt)
-                       ops->free_pkt += gd->reloc_off;
-               if (ops->stop)
-                       ops->stop += gd->reloc_off;
-               if (ops->mcast)
-                       ops->mcast += gd->reloc_off;
-               if (ops->write_hwaddr)
-                       ops->write_hwaddr += gd->reloc_off;
-               if (ops->read_rom_hwaddr)
-                       ops->read_rom_hwaddr += gd->reloc_off;
-
-               reloc_done++;
-       }
-#endif
-
        priv->state = ETH_STATE_INIT;
        priv->running = false;