aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/of/of_mdio.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/of/of_mdio.c')
-rw-r--r--drivers/of/of_mdio.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/of/of_mdio.c b/drivers/of/of_mdio.c
index 12090f57dc87..01d794abe105 100644
--- a/drivers/of/of_mdio.c
+++ b/drivers/of/of_mdio.c
@@ -101,7 +101,7 @@ EXPORT_SYMBOL(of_mdiobus_register);
101/* Helper function for of_phy_find_device */ 101/* Helper function for of_phy_find_device */
102static int of_phy_match(struct device *dev, void *phy_np) 102static int of_phy_match(struct device *dev, void *phy_np)
103{ 103{
104 return dev_archdata_get_node(&dev->archdata) == phy_np; 104 return dev->of_node == phy_np;
105} 105}
106 106
107/** 107/**
@@ -167,7 +167,7 @@ struct phy_device *of_phy_connect_fixed_link(struct net_device *dev,
167 if (!dev->dev.parent) 167 if (!dev->dev.parent)
168 return NULL; 168 return NULL;
169 169
170 net_np = dev_archdata_get_node(&dev->dev.parent->archdata); 170 net_np = dev->dev.parent->of_node;
171 if (!net_np) 171 if (!net_np)
172 return NULL; 172 return NULL;
173 173