]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
phylib: two dynamic mii_bus allocation fallout fixes
authorLennert Buytenhek <buytenh@marvell.com>
Thu, 9 Oct 2008 16:45:04 +0000 (09:45 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 9 Oct 2008 16:45:04 +0000 (09:45 -0700)
commitec2a5652ea53c102306f08cdf516f98e32bd4b61
treeeb4aaee0455d2627556a830e4b491e7bba95bb87
parent724f88057609c00d6e973c3a7e0eb72f8eec2da9
phylib: two dynamic mii_bus allocation fallout fixes

1. arch/powerpc/platforms/pasemi/gpio_mdio.c also needs to be
   converted over to mdiobus_{alloc,free}().

2. drivers/net/phy/fixed.c used to embed a struct mii_bus into its
   struct fixed_mdio_bus and then use container_of() to go from the
   former to the latter.  Since mii bus structures are no longer
   embedded, we need to do something like use the mii bus private
   pointer to go from mii_bus to fixed_mdio_bus instead.

Signed-off-by: Lennert Buytenhek <buytenh@marvell.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
arch/powerpc/platforms/pasemi/gpio_mdio.c
drivers/net/phy/fixed.c