diff options
author | Heiner Kallweit <hkallweit1@gmail.com> | 2024-02-03 20:54:48 +0100 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2024-02-06 18:58:45 -0800 |
commit | 7cc0187ea2522bae916e443e66a8952b71e667e2 (patch) | |
tree | 17b1aed4acda95f2de4455029b137dc368903256 /drivers/net/ethernet/realtek | |
parent | b64691274f5d33fc9d93af73483162967f7ec5bb (diff) | |
download | lwn-7cc0187ea2522bae916e443e66a8952b71e667e2.tar.gz lwn-7cc0187ea2522bae916e443e66a8952b71e667e2.zip |
r8169: use new helper phy_advertise_eee_all
Use new helper phy_advertise_eee_all() to simplify the code.
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Link: https://lore.kernel.org/r/ddedd82e-55da-4db5-acc6-9407c03f168c@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'drivers/net/ethernet/realtek')
-rw-r--r-- | drivers/net/ethernet/realtek/r8169_main.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/ethernet/realtek/r8169_main.c b/drivers/net/ethernet/realtek/r8169_main.c index c7086953974e..b43db3c49d82 100644 --- a/drivers/net/ethernet/realtek/r8169_main.c +++ b/drivers/net/ethernet/realtek/r8169_main.c @@ -5091,8 +5091,7 @@ static int r8169_mdio_register(struct rtl8169_private *tp) tp->phydev->mac_managed_pm = true; if (rtl_supports_eee(tp)) - linkmode_copy(tp->phydev->advertising_eee, - tp->phydev->supported_eee); + phy_advertise_eee_all(tp->phydev); phy_support_asym_pause(tp->phydev); /* PHY will be woken up in rtl_open() */ |