- /* Reset the mdio bus explicitly */
- if (ag->mii_bus) {
- mutex_lock(&ag->mii_bus->mdio_lock);
- ag->mii_bus->reset(ag->mii_bus);
- mutex_unlock(&ag->mii_bus->mdio_lock);
- }
-
platform_set_drvdata(pdev, dev);
return 0;
platform_set_drvdata(pdev, dev);
return 0;
+ /* Reset the mdio bus explicitly */
+ mutex_lock(&ag->mii_bus->mdio_lock);
+ ag->mii_bus->reset(ag->mii_bus);
+ mutex_unlock(&ag->mii_bus->mdio_lock);
+
if (pdata->phy_mask)
return ag71xx_phy_connect_multi(ag);
if (pdata->phy_mask)
return ag71xx_phy_connect_multi(ag);