From: Marek Vasut Date: Sun, 19 Mar 2023 17:03:15 +0000 (+0100) Subject: net: phy: Drop unused phy_register() X-Git-Url: http://git.dujemihanovic.xyz/img/sics.gif?a=commitdiff_plain;h=7da03bbc5711b394674f2ed40a2a3c9c4cb46154;p=u-boot.git net: phy: Drop unused phy_register() This function is no longer used, drop it. Signed-off-by: Marek Vasut Reviewed-by: Ramon Fried Acked-by: Michal Simek Tested-by: Michal Simek #microblaze (MANUAL_RELOC) --- diff --git a/drivers/net/phy/phy.c b/drivers/net/phy/phy.c index f4aa1f664c..15da9a80de 100644 --- a/drivers/net/phy/phy.c +++ b/drivers/net/phy/phy.c @@ -500,14 +500,6 @@ int phy_init(void) return 0; } -int phy_register(struct phy_driver *drv) -{ -#ifdef CONFIG_NEEDS_MANUAL_RELOC - phy_drv_reloc(drv); -#endif - return 0; -} - int phy_set_supported(struct phy_device *phydev, u32 max_speed) { /* The default values for phydev->supported are provided by the PHY diff --git a/include/phy.h b/include/phy.h index 5e8ae5e29a..4a9de46115 100644 --- a/include/phy.h +++ b/include/phy.h @@ -293,7 +293,6 @@ int phy_clear_bits_mmd(struct phy_device *phydev, int devad, u32 regnum, u16 val int phy_startup(struct phy_device *phydev); int phy_config(struct phy_device *phydev); int phy_shutdown(struct phy_device *phydev); -int phy_register(struct phy_driver *drv); int phy_set_supported(struct phy_device *phydev, u32 max_speed); int phy_modify(struct phy_device *phydev, int devad, int regnum, u16 mask, u16 set);