mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/netdev/net.git/
synced 2026-04-28 21:46:43 -04:00
net: mdio: use device_set_node() to setup both fwnode and of
Use the newly introduced helper to setup both the of_node and the fwnode for a given device. Signed-off-by: Ioana Ciornei <ioana.ciornei@nxp.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
43e76d463c
commit
7e33d84db1
@@ -65,8 +65,7 @@ int fwnode_mdiobus_phy_device_register(struct mii_bus *mdio,
|
||||
* can be looked up later
|
||||
*/
|
||||
fwnode_handle_get(child);
|
||||
phy->mdio.dev.of_node = to_of_node(child);
|
||||
phy->mdio.dev.fwnode = child;
|
||||
device_set_node(&phy->mdio.dev, child);
|
||||
|
||||
/* All data is now stored in the phy struct;
|
||||
* register it
|
||||
|
||||
Reference in New Issue
Block a user