diff options
Diffstat (limited to 'drivers/of/of_mdio.c')
-rw-r--r-- | drivers/of/of_mdio.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/of/of_mdio.c b/drivers/of/of_mdio.c index b4748337223b..42a6715f8e84 100644 --- a/drivers/of/of_mdio.c +++ b/drivers/of/of_mdio.c | |||
@@ -79,7 +79,7 @@ int of_mdiobus_register(struct mii_bus *mdio, struct device_node *np) | |||
79 | /* Associate the OF node with the device structure so it | 79 | /* Associate the OF node with the device structure so it |
80 | * can be looked up later */ | 80 | * can be looked up later */ |
81 | of_node_get(child); | 81 | of_node_get(child); |
82 | dev_archdata_set_node(&phy->dev.archdata, child); | 82 | phy->dev.of_node = child; |
83 | 83 | ||
84 | /* All data is now stored in the phy struct; register it */ | 84 | /* All data is now stored in the phy struct; register it */ |
85 | rc = phy_device_register(phy); | 85 | rc = phy_device_register(phy); |
@@ -100,7 +100,7 @@ EXPORT_SYMBOL(of_mdiobus_register); | |||
100 | /* Helper function for of_phy_find_device */ | 100 | /* Helper function for of_phy_find_device */ |
101 | static int of_phy_match(struct device *dev, void *phy_np) | 101 | static int of_phy_match(struct device *dev, void *phy_np) |
102 | { | 102 | { |
103 | return dev_archdata_get_node(&dev->archdata) == phy_np; | 103 | return dev->of_node == phy_np; |
104 | } | 104 | } |
105 | 105 | ||
106 | /** | 106 | /** |
@@ -166,7 +166,7 @@ struct phy_device *of_phy_connect_fixed_link(struct net_device *dev, | |||
166 | if (!dev->dev.parent) | 166 | if (!dev->dev.parent) |
167 | return NULL; | 167 | return NULL; |
168 | 168 | ||
169 | net_np = dev_archdata_get_node(&dev->dev.parent->archdata); | 169 | net_np = dev->dev.parent->of_node; |
170 | if (!net_np) | 170 | if (!net_np) |
171 | return NULL; | 171 | return NULL; |
172 | 172 | ||