]> git.ipfire.org Git - thirdparty/linux.git/blobdiff - drivers/net/mdio/fwnode_mdio.c
net: mdio: use device_set_node() to setup both fwnode and of
[thirdparty/linux.git] / drivers / net / mdio / fwnode_mdio.c
index 283ddb1185bd6f64c62c92f2959aa5a370f848db..1becb1a731f67555fc44e099bd90ee432086203c 100644 (file)
@@ -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