Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2613f95f authored by Florian Fainelli's avatar Florian Fainelli Committed by David S. Miller
Browse files

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: default avatarFlorian Fainelli <f.fainelli@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 114002bc
Loading
Loading
Loading
Loading
+2 −5
Original line number Diff line number Diff line
@@ -361,11 +361,8 @@ int phy_mii_ioctl(struct phy_device *phydev,
			      mii_data->reg_num, val);

		if (mii_data->reg_num == MII_BMCR &&
		    val & BMCR_RESET &&
		    phydev->drv->config_init) {
			phy_scan_fixups(phydev);
			phydev->drv->config_init(phydev);
		}
		    val & BMCR_RESET)
			phy_init_hw(phydev);
		break;

	case SIOCSHWTSTAMP: