diff options
author | Lennert Buytenhek <buytenh@marvell.com> | 2008-10-09 01:29:57 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-10-09 01:29:57 +0200 |
commit | 298cf9beb9679522de995e249eccbd82f7c51999 (patch) | |
tree | cabbc9c696a063982aea9a24d8caa667daa33a1a /drivers/net/macb.h | |
parent | phylib: rename mii_bus::dev to mii_bus::parent (diff) | |
download | linux-298cf9beb9679522de995e249eccbd82f7c51999.tar.xz linux-298cf9beb9679522de995e249eccbd82f7c51999.zip |
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 'drivers/net/macb.h')
-rw-r--r-- | drivers/net/macb.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/macb.h b/drivers/net/macb.h index 57b85acf0d16..d3212f6db703 100644 --- a/drivers/net/macb.h +++ b/drivers/net/macb.h @@ -384,7 +384,7 @@ struct macb { unsigned int rx_pending, tx_pending; - struct mii_bus mii_bus; + struct mii_bus *mii_bus; struct phy_device *phy_dev; unsigned int link; unsigned int speed; |