aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorian Fainelli <f.fainelli@gmail.com>2013-12-06 16:01:31 -0500
committerDavid S. Miller <davem@davemloft.net>2013-12-09 20:38:58 -0500
commit2613f95f614b39681f77a5036046ea395e306e28 (patch)
treef0b20b6da39206ff08acba562571dd006f6707dc
parent114002bc1af6c63de4c003f8c5d3ca0bb430d987 (diff)
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>
-rw-r--r--drivers/net/phy/phy.c7
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,
361 mii_data->reg_num, val); 361 mii_data->reg_num, val);
362 362
363 if (mii_data->reg_num == MII_BMCR && 363 if (mii_data->reg_num == MII_BMCR &&
364 val & BMCR_RESET && 364 val & BMCR_RESET)
365 phydev->drv->config_init) { 365 phy_init_hw(phydev);
366 phy_scan_fixups(phydev);
367 phydev->drv->config_init(phydev);
368 }
369 break; 366 break;
370 367
371 case SIOCSHWTSTAMP: 368 case SIOCSHWTSTAMP: