diff options
| author | David S. Miller <davem@davemloft.net> | 2014-05-29 15:23:49 -0700 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2014-05-29 15:23:49 -0700 |
| commit | c3aad35e4890d79084ab70c54a5d7740045d2f90 (patch) | |
| tree | 00ef5d250678eca0ae539dca4a10d2d6de5334d9 /include/linux | |
| parent | 6623b4194459c07859d3e3196c3994fa7be5b88e (diff) | |
| parent | 24f28dde5bed3b6322003dca903ebf7732efa550 (diff) | |
Merge branch 'of_mdio'
Daniel Mack says:
====================
mdio: Parse DT nodes for auto-probed PHYs
Here's v2.
v1 -> v2:
* Switch to of_property_read_u32() in patch #1
* Check for mdio->dev_of_node in patch #2
* Added Florian's Reviewed-by: tags
====================
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/of_mdio.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/linux/of_mdio.h b/include/linux/of_mdio.h index d449018d0726..a70c9493d55a 100644 --- a/include/linux/of_mdio.h +++ b/include/linux/of_mdio.h @@ -25,6 +25,9 @@ struct phy_device *of_phy_attach(struct net_device *dev, extern struct mii_bus *of_mdio_find_bus(struct device_node *mdio_np); +extern void of_mdiobus_link_phydev(struct mii_bus *mdio, + struct phy_device *phydev); + #else /* CONFIG_OF */ static inline int of_mdiobus_register(struct mii_bus *mdio, struct device_node *np) { @@ -60,6 +63,11 @@ static inline struct mii_bus *of_mdio_find_bus(struct device_node *mdio_np) { return NULL; } + +static inline void of_mdiobus_link_phydev(struct mii_bus *mdio, + struct phy_device *phydev) +{ +} #endif /* CONFIG_OF */ #if defined(CONFIG_OF) && defined(CONFIG_FIXED_PHY) |
