diff options
author | Romain Perier <[email protected]> | 2016-01-07 21:13:28 +0100 |
---|---|---|
committer | David S. Miller <[email protected]> | 2016-01-10 18:02:33 -0500 |
commit | 6c672c9bf44e718ccc8bb137032a57070980bb4e (patch) | |
tree | 50a91e773e897ef456bcd2ffce42636abce6bc77 /drivers/fpga/fpga-mgr.c | |
parent | 749f7df18689b113dc0d914e40122b37ddaeff41 (diff) |
stmmac: Don't exit mdio registration when mdio subnode is not found in the DTS
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: e34d65696d2e ("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]>
Diffstat (limited to 'drivers/fpga/fpga-mgr.c')
0 files changed, 0 insertions, 0 deletions