net: phy: use phy_init_hw instead of open-coding it

Use phy_init_hw() instead of open-coding it in phy_mii_ioctl(), this
improves consistenty and makes sure that we will not duplicate the same
routine somewhere else.

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
Florian Fainelli 2013-12-06 13:01:31 -08:00 committed by David S. Miller
parent 114002bc1a
commit 2613f95f61
1 changed files with 2 additions and 5 deletions

View File

@ -361,11 +361,8 @@ int phy_mii_ioctl(struct phy_device *phydev,
mii_data->reg_num, val); mii_data->reg_num, val);
if (mii_data->reg_num == MII_BMCR && if (mii_data->reg_num == MII_BMCR &&
val & BMCR_RESET && val & BMCR_RESET)
phydev->drv->config_init) { phy_init_hw(phydev);
phy_scan_fixups(phydev);
phydev->drv->config_init(phydev);
}
break; break;
case SIOCSHWTSTAMP: case SIOCSHWTSTAMP: