aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/of/of_mdio.c
diff options
context:
space:
mode:
authorGrant Likely <grant.likely@secretlab.ca>2010-04-13 19:12:29 -0400
committerGrant Likely <grant.likely@secretlab.ca>2010-05-18 18:10:44 -0400
commit61c7a080a5a061c976988fd4b844dfb468dda255 (patch)
tree8cb492b73f2755c38a6164d770da34d5af6486a0 /drivers/of/of_mdio.c
parentd12d42f744f805a9ccc33cd76f04b237cd83ce56 (diff)
of: Always use 'struct device.of_node' to get device node pointer.
The following structure elements duplicate the information in 'struct device.of_node' and so are being eliminated. This patch makes all readers of these elements use device.of_node instead. (struct of_device *)->node (struct dev_archdata *)->prom_node (sparc) (struct dev_archdata *)->of_node (powerpc & microblaze) Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
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