Fix MDIO
priv->mii_bus is not yet initialized by the time pfe_eth_mdio_reset() is
called. Use the pointer from the parameter bus which is what we need
here.
Change-Id: I497c55cf2a4ac45430ce68bddc6cc820bbd92262
diff --git a/pfe_ctrl/pfe_eth.c b/pfe_ctrl/pfe_eth.c
index 08e29ce..7d4530e 100644
--- a/pfe_ctrl/pfe_eth.c
+++ b/pfe_ctrl/pfe_eth.c
@@ -1043,7 +1043,7 @@
mutex_lock(&bus->mdio_lock);
/* Setup the MII Mgmt clock speed */
- if (priv->mii_bus)
+ if (bus)
gemac_set_mdc_div(priv->EMAC_baseaddr, priv->mdc_div);
/* Reset the management interface */