aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/phy.h
diff options
context:
space:
mode:
authorLennert Buytenhek <buytenh@marvell.com>2008-10-08 19:29:57 -0400
committerDavid S. Miller <davem@davemloft.net>2008-10-08 19:29:57 -0400
commit298cf9beb9679522de995e249eccbd82f7c51999 (patch)
treecabbc9c696a063982aea9a24d8caa667daa33a1a /include/linux/phy.h
parent18ee49ddb0d242ed1d0e273038d5e4f6de7379d3 (diff)
phylib: move to dynamic allocation of struct mii_bus
This patch introduces mdiobus_alloc() and mdiobus_free(), and makes all mdio bus drivers use these functions to allocate their struct mii_bus'es dynamically. Signed-off-by: Lennert Buytenhek <buytenh@marvell.com> Signed-off-by: David S. Miller <davem@davemloft.net> Acked-by: Andy Fleming <afleming@freescale.com>
Diffstat (limited to 'include/linux/phy.h')
-rw-r--r--include/linux/phy.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/phy.h b/include/linux/phy.h
index 87499bdedc6f..ca4a83c4c537 100644
--- a/include/linux/phy.h
+++ b/include/linux/phy.h
@@ -408,8 +408,10 @@ void phy_start(struct phy_device *phydev);
408void phy_stop(struct phy_device *phydev); 408void phy_stop(struct phy_device *phydev);
409int phy_start_aneg(struct phy_device *phydev); 409int phy_start_aneg(struct phy_device *phydev);
410 410
411struct mii_bus *mdiobus_alloc(void);
411int mdiobus_register(struct mii_bus *bus); 412int mdiobus_register(struct mii_bus *bus);
412void mdiobus_unregister(struct mii_bus *bus); 413void mdiobus_unregister(struct mii_bus *bus);
414void mdiobus_free(struct mii_bus *bus);
413struct phy_device *mdiobus_scan(struct mii_bus *bus, int addr); 415struct phy_device *mdiobus_scan(struct mii_bus *bus, int addr);
414 416
415void phy_sanitize_settings(struct phy_device *phydev); 417void phy_sanitize_settings(struct phy_device *phydev);