summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/socionext
diff options
context:
space:
mode:
authorKunihiko Hayashi <hayashi.kunihiko@socionext.com>2022-10-24 16:23:14 +0900
committerJakub Kicinski <kuba@kernel.org>2022-10-26 20:20:24 -0700
commit3a6573b7a21864aafd43b347918a39e84dabfd89 (patch)
tree0ba4a513c053c8492b9748a8247e4c82ef6eb303 /drivers/net/ethernet/socionext
parentb65ef50e0647cb6d7317ee5122f461286bb7f8d5 (diff)
downloadlwn-3a6573b7a21864aafd43b347918a39e84dabfd89.tar.gz
lwn-3a6573b7a21864aafd43b347918a39e84dabfd89.zip
net: ethernet: ave: Remove duplicate phy_resume() calls
ave_open() in ave_resume() executes __phy_resume() via phy_start(), so no need to call phy_resume() explicitly. Remove it. Signed-off-by: Kunihiko Hayashi <hayashi.kunihiko@socionext.com> Link: https://lore.kernel.org/r/20221024072314.24969-1-hayashi.kunihiko@socionext.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'drivers/net/ethernet/socionext')
-rw-r--r--drivers/net/ethernet/socionext/sni_ave.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/net/ethernet/socionext/sni_ave.c b/drivers/net/ethernet/socionext/sni_ave.c
index 1fa09b49ba7f..f7a44e039b5f 100644
--- a/drivers/net/ethernet/socionext/sni_ave.c
+++ b/drivers/net/ethernet/socionext/sni_ave.c
@@ -1760,12 +1760,6 @@ static int ave_resume(struct device *dev)
wol.wolopts = priv->wolopts;
__ave_ethtool_set_wol(ndev, &wol);
- if (ndev->phydev) {
- ret = phy_resume(ndev->phydev);
- if (ret)
- return ret;
- }
-
if (netif_running(ndev)) {
ret = ave_open(ndev);
netif_device_attach(ndev);