|
@@ -25,6 +25,8 @@ struct phy_device *of_phy_attach(struct net_device *dev,
|
|
|
|
|
|
extern struct mii_bus *of_mdio_find_bus(struct device_node *mdio_np);
|
|
|
extern int of_mdio_parse_addr(struct device *dev, const struct device_node *np);
|
|
|
+extern int of_phy_register_fixed_link(struct device_node *np);
|
|
|
+extern bool of_phy_is_fixed_link(struct device_node *np);
|
|
|
|
|
|
#else /* CONFIG_OF */
|
|
|
static inline int of_mdiobus_register(struct mii_bus *mdio, struct device_node *np)
|
|
@@ -67,12 +69,6 @@ static inline int of_mdio_parse_addr(struct device *dev,
|
|
|
{
|
|
|
return -ENOSYS;
|
|
|
}
|
|
|
-#endif /* CONFIG_OF */
|
|
|
-
|
|
|
-#if defined(CONFIG_OF) && IS_ENABLED(CONFIG_FIXED_PHY)
|
|
|
-extern int of_phy_register_fixed_link(struct device_node *np);
|
|
|
-extern bool of_phy_is_fixed_link(struct device_node *np);
|
|
|
-#else
|
|
|
static inline int of_phy_register_fixed_link(struct device_node *np)
|
|
|
{
|
|
|
return -ENOSYS;
|