diff options
author | Lennert Buytenhek <buytenh@marvell.com> | 2008-10-08 19:29:57 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-10-08 19:29:57 -0400 |
commit | 298cf9beb9679522de995e249eccbd82f7c51999 (patch) | |
tree | cabbc9c696a063982aea9a24d8caa667daa33a1a /include | |
parent | 18ee49ddb0d242ed1d0e273038d5e4f6de7379d3 (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')
-rw-r--r-- | include/linux/phy.h | 2 |
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); | |||
408 | void phy_stop(struct phy_device *phydev); | 408 | void phy_stop(struct phy_device *phydev); |
409 | int phy_start_aneg(struct phy_device *phydev); | 409 | int phy_start_aneg(struct phy_device *phydev); |
410 | 410 | ||
411 | struct mii_bus *mdiobus_alloc(void); | ||
411 | int mdiobus_register(struct mii_bus *bus); | 412 | int mdiobus_register(struct mii_bus *bus); |
412 | void mdiobus_unregister(struct mii_bus *bus); | 413 | void mdiobus_unregister(struct mii_bus *bus); |
414 | void mdiobus_free(struct mii_bus *bus); | ||
413 | struct phy_device *mdiobus_scan(struct mii_bus *bus, int addr); | 415 | struct phy_device *mdiobus_scan(struct mii_bus *bus, int addr); |
414 | 416 | ||
415 | void phy_sanitize_settings(struct phy_device *phydev); | 417 | void phy_sanitize_settings(struct phy_device *phydev); |