diff options
| author | Florian Fainelli <[email protected]> | 2013-12-06 21:01:31 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2013-12-10 01:38:58 +0000 |
| commit | 2613f95f614b39681f77a5036046ea395e306e28 (patch) | |
| tree | f0b20b6da39206ff08acba562571dd006f6707dc /drivers/net/phy/phy.c | |
| parent | net: phy: report link partner features through ethtool (diff) | |
| download | kernel-2613f95f614b39681f77a5036046ea395e306e28.tar.gz kernel-2613f95f614b39681f77a5036046ea395e306e28.zip | |
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 <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'drivers/net/phy/phy.c')
| -rw-r--r-- | drivers/net/phy/phy.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/drivers/net/phy/phy.c b/drivers/net/phy/phy.c index 05cb8fe742f9..5d7101b3b604 100644 --- a/drivers/net/phy/phy.c +++ b/drivers/net/phy/phy.c @@ -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: |
