[PATCH 2/5] gianfar: assign mii_bus value in dev->priv

Paul Gortmaker paul.gortmaker at windriver.com
Fri Apr 11 03:51:59 EST 2008


The gianfar priv struct has an entry for the mii_bus, but it
isn't being populated.  Assign a value for it at the same time
as we assign the phydev, so that it can be used in calls like
gianfar_mdio_read/write.

Signed-off-by: Paul Gortmaker <paul.gortmaker at windriver.com>
---
 drivers/net/gianfar.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/drivers/net/gianfar.c b/drivers/net/gianfar.c
index 718cf77..0ad74c1 100644
--- a/drivers/net/gianfar.c
+++ b/drivers/net/gianfar.c
@@ -471,6 +471,7 @@ static int init_phy(struct net_device *dev)
 	phydev->supported &= (GFAR_SUPPORTED | gigabit_support);
 	phydev->advertising = phydev->supported;
 
+	priv->mii_bus = phydev->bus;
 	priv->phydev = phydev;
 
 	return 0;
-- 
1.5.4.3




More information about the Linuxppc-dev mailing list