--- zzzz-none-000/linux-5.4.213/include/linux/of_mdio.h 2022-09-15 10:04:56.000000000 +0000 +++ alder-5690pro-762/linux-5.4.213/include/linux/of_mdio.h 2024-08-14 09:02:08.000000000 +0000 @@ -26,6 +26,8 @@ phy_interface_t iface); extern struct mii_bus *of_mdio_find_bus(struct device_node *mdio_np); +extern int of_mdiobus_register_phy(struct mii_bus *mdio, + struct device_node *child, u32 addr); extern int of_phy_register_fixed_link(struct device_node *np); extern void of_phy_deregister_fixed_link(struct device_node *np); extern bool of_phy_is_fixed_link(struct device_node *np); @@ -101,6 +103,13 @@ { return -ENOSYS; } + +static int of_mdiobus_register_phy(struct mii_bus *mdio, + struct device_node *child, u32 addr) +{ + return -ENOSYS; +} + static inline int of_phy_register_fixed_link(struct device_node *np) { return -ENOSYS;