CONFIG_PHY_FIXED depends on CONFIG_DM_ETH. Remove the non-DM version prototype of phy_connect_fixed().
Signed-off-by: Bin Meng <bmeng...@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