phylib: give mdio buses a device tree presence
Subsystems (2)
v2 cover phylib: give mdio buses a device tree presence
This patch series hooks up mdio buses (struct mii_bus) into the device tree, so that they show up in sysfs and can be found by walking the device tree.
The main intended user for this is the DSA switch driver, but there might be other uses as well.
Changes between v1 and v2:
- Add back accidentally deleted error handling from drivers/net/phy/mdio-bitbang.c (Andy Fleming).
- Deal with mdiobus_register() after mdiobus_unregister() properly.
- Make phy_read()/phy_write() inline functions and move them to include/linux/phy.h (Trent Piepho, Andy Fleming).
- Fix compilation of tc35815.