of_mdio / mdiobus: ensure mdio devices have fwnode correctly populated
authorRussell King <rmk+kernel@armlinux.org.uk>
Tue, 12 Dec 2017 10:49:15 +0000 (10:49 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 13 Dec 2017 20:01:47 +0000 (15:01 -0500)
commit94a5ef1b77da4674a6bc1d3de3051b758859d106
treefe56edf1fd11c69fd8459067f455cd898973f627
parentf5e64032a799d4f54decc7eb6aafcdffb67f9ad9
of_mdio / mdiobus: ensure mdio devices have fwnode correctly populated

Ensure that all mdio devices populate the struct device fwnode pointer
as well as the of_node pointer to allow drivers that wish to use
fwnode APIs to work.

Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Reviewed-by: Rob Herring <robh@kernel.org>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/mdio_bus.c
drivers/of/of_mdio.c