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 /drivers/net/tg3.h | |
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 'drivers/net/tg3.h')
-rw-r--r-- | drivers/net/tg3.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/tg3.h b/drivers/net/tg3.h index 6c7b5e303dbb..be252abe8985 100644 --- a/drivers/net/tg3.h +++ b/drivers/net/tg3.h | |||
@@ -2556,7 +2556,7 @@ struct tg3 { | |||
2556 | int msi_cap; | 2556 | int msi_cap; |
2557 | int pcix_cap; | 2557 | int pcix_cap; |
2558 | 2558 | ||
2559 | struct mii_bus mdio_bus; | 2559 | struct mii_bus *mdio_bus; |
2560 | int mdio_irq[PHY_MAX_ADDR]; | 2560 | int mdio_irq[PHY_MAX_ADDR]; |
2561 | 2561 | ||
2562 | /* PHY info */ | 2562 | /* PHY info */ |