summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2014-05-21 12:22:21 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2014-05-23 15:40:51 +0200
commit75635f6926d2a3dcadd9b9c026aa21a16e113ee3 (patch)
treefe83786eb52dba2585119c6236c50ffa6735f1ec /drivers
parent7240f56d360b369f5e20fc260ede31043f193efa (diff)
downloadbarebox-75635f6926d2a3dcadd9b9c026aa21a16e113ee3.tar.gz
barebox-75635f6926d2a3dcadd9b9c026aa21a16e113ee3.tar.xz
net: phy: remove now unused of_phy_device_connect
Since barebox handles phys from devicetree transparently we no longer need of_phy_device_connect. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/phy/phy.c31
1 files changed, 0 insertions, 31 deletions
diff --git a/drivers/net/phy/phy.c b/drivers/net/phy/phy.c
index 257df7437b..b0e0c1e369 100644
--- a/drivers/net/phy/phy.c
+++ b/drivers/net/phy/phy.c
@@ -376,37 +376,6 @@ out:
return ret;
}
-#if defined(CONFIG_OFTREE)
-int of_phy_device_connect(struct eth_device *edev, struct device_node *phy_np,
- void (*adjust_link) (struct eth_device *edev),
- u32 flags, phy_interface_t interface)
-{
- struct device_node *bus_np;
- struct mii_bus *miibus;
- int phy_addr = -ENODEV;
-
- if (!phy_np)
- return -EINVAL;
-
- of_property_read_u32(phy_np, "reg", &phy_addr);
-
- bus_np = of_get_parent(phy_np);
- if (!bus_np)
- return -ENODEV;
-
- for_each_mii_bus(miibus) {
- if (miibus->parent && miibus->parent->device_node == bus_np)
- return phy_device_connect(edev, miibus, phy_addr,
- adjust_link, flags, interface);
- }
-
- dev_err(&edev->dev, "unable to mdio bus for phy %s\n",
- phy_np->full_name);
-
- return -ENODEV;
-}
-#endif
-
/* Generic PHY support and helper functions */
/**