Skip to content

Commit c8be701

Browse files
Dr. David Alan Gilbertkuba-moo
authored andcommitted
net: phylink: Remove unused phylink_init_eee
phylink_init_eee() is currently unused. It was last added in 2019 by commit 86e5813 ("net: phylink: add phylink_init_eee() helper") but it didn't actually wire a use up. It had previous been removed in 2017 by commit 939eae2 ("phylink: remove phylink_init_eee()"). Remove it again. Signed-off-by: Dr. David Alan Gilbert <[email protected]> Reviewed-by: Russell King (Oracle) <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
1 parent 865eddc commit c8be701

File tree

2 files changed

+0
-19
lines changed

2 files changed

+0
-19
lines changed

drivers/net/phy/phylink.c

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -3157,24 +3157,6 @@ int phylink_get_eee_err(struct phylink *pl)
31573157
}
31583158
EXPORT_SYMBOL_GPL(phylink_get_eee_err);
31593159

3160-
/**
3161-
* phylink_init_eee() - init and check the EEE features
3162-
* @pl: a pointer to a &struct phylink returned from phylink_create()
3163-
* @clk_stop_enable: allow PHY to stop receive clock
3164-
*
3165-
* Must be called either with RTNL held or within mac_link_up()
3166-
*/
3167-
int phylink_init_eee(struct phylink *pl, bool clk_stop_enable)
3168-
{
3169-
int ret = -EOPNOTSUPP;
3170-
3171-
if (pl->phydev)
3172-
ret = phy_init_eee(pl->phydev, clk_stop_enable);
3173-
3174-
return ret;
3175-
}
3176-
EXPORT_SYMBOL_GPL(phylink_init_eee);
3177-
31783160
/**
31793161
* phylink_ethtool_get_eee() - read the energy efficient ethernet parameters
31803162
* @pl: a pointer to a &struct phylink returned from phylink_create()

include/linux/phylink.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -714,7 +714,6 @@ void phylink_ethtool_get_pauseparam(struct phylink *,
714714
int phylink_ethtool_set_pauseparam(struct phylink *,
715715
struct ethtool_pauseparam *);
716716
int phylink_get_eee_err(struct phylink *);
717-
int phylink_init_eee(struct phylink *, bool);
718717
int phylink_ethtool_get_eee(struct phylink *link, struct ethtool_keee *eee);
719718
int phylink_ethtool_set_eee(struct phylink *link, struct ethtool_keee *eee);
720719
int phylink_mii_ioctl(struct phylink *, struct ifreq *, int);

0 commit comments

Comments
 (0)