]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
net: miiphybb: Remove unused NEEDS_MANUAL_RELOC code bits
authorMarek Vasut <marek.vasut+renesas@mailbox.org>
Wed, 6 Sep 2023 21:30:08 +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>
drivers/net/phy/miiphybb.c

index 24d617553e71d160ec3dcf5c31118e05de54aa8f..cf71f7d4e7e5a3526c1e97e11ded132575dd7b9f 100644 (file)
 #include <miiphy.h>
 #include <asm/global_data.h>
 
-#define BB_MII_RELOCATE(v,off) (v += (v?off:0))
-
-DECLARE_GLOBAL_DATA_PTR;
-
 #ifndef CONFIG_BITBANGMII_MULTI
 
 /*
@@ -110,21 +106,9 @@ int bb_miiphy_init(void)
 {
        int i;
 
-       for (i = 0; i < bb_miiphy_buses_num; i++) {
-#if defined(CONFIG_NEEDS_MANUAL_RELOC)
-               /* Relocate the hook pointers*/
-               BB_MII_RELOCATE(bb_miiphy_buses[i].init, gd->reloc_off);
-               BB_MII_RELOCATE(bb_miiphy_buses[i].mdio_active, gd->reloc_off);
-               BB_MII_RELOCATE(bb_miiphy_buses[i].mdio_tristate, gd->reloc_off);
-               BB_MII_RELOCATE(bb_miiphy_buses[i].set_mdio, gd->reloc_off);
-               BB_MII_RELOCATE(bb_miiphy_buses[i].get_mdio, gd->reloc_off);
-               BB_MII_RELOCATE(bb_miiphy_buses[i].set_mdc, gd->reloc_off);
-               BB_MII_RELOCATE(bb_miiphy_buses[i].delay, gd->reloc_off);
-#endif
-               if (bb_miiphy_buses[i].init != NULL) {
+       for (i = 0; i < bb_miiphy_buses_num; i++)
+               if (bb_miiphy_buses[i].init != NULL)
                        bb_miiphy_buses[i].init(&bb_miiphy_buses[i]);
-               }
-       }
 
        return 0;
 }