[PATCH 03/20] net: phy: fixed: Remove non-DM prototype of phy_connect_fixed()

Bin Meng bmeng.cn at gmail.com
Tue Mar 2 16:34:34 CET 2021


CONFIG_PHY_FIXED depends on CONFIG_DM_ETH. Remove the non-DM version
prototype of phy_connect_fixed().

Signed-off-by: Bin Meng <bmeng.cn at gmail.com>
---

 drivers/net/phy/phy.c | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/drivers/net/phy/phy.c b/drivers/net/phy/phy.c
index f0522fc149..d08e8026ba 100644
--- a/drivers/net/phy/phy.c
+++ b/drivers/net/phy/phy.c
@@ -997,15 +997,9 @@ struct phy_device *fixed_phy_create(ofnode node)
 				 false, interface);
 }
 
-#ifdef CONFIG_DM_ETH
 static struct phy_device *phy_connect_fixed(struct mii_dev *bus,
 					    struct udevice *dev,
 					    phy_interface_t interface)
-#else
-static struct phy_device *phy_connect_fixed(struct mii_dev *bus,
-					    struct eth_device *dev,
-					    phy_interface_t interface)
-#endif
 {
 	struct phy_device *phydev = NULL;
 	int sn;
-- 
2.25.1



More information about the U-Boot mailing list