mirror of
https://github.com/torvalds/linux.git
synced 2026-12-02 11:34:58 +00:00
Originally, most of the platforms using this driver did not define an mdio subnode
in the devicetree. Commit e34d65 ("stmmac: create of compatible mdio bus for stmmac driver")
introduced a backward compatibily issue by using of_mdiobus_register explicitly
with an mdio subnode. This patch fixes the issue by calling the function
mdiobus_register, when mdio subnode is not found. The driver is now compatible
with both modes.
Fixes: e34d65696d ("stmmac: create of compatible mdio bus for stmmac driver")
Signed-off-by: Romain Perier <[email protected]>
Tested-by: Phil Reid <[email protected]>
Signed-off-by: David S. Miller <[email protected]>