Skip to content

Commit 939eae2

Browse files
Russell Kingdavem330
authored andcommitted
phylink: remove phylink_init_eee()
phylink_init_eee() serves no purpose, remove it. Signed-off-by: Russell King <[email protected]> Reviewed-by: Florian Fainelli <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 4336c40 commit 939eae2

File tree

2 files changed

+0
-14
lines changed

2 files changed

+0
-14
lines changed

drivers/net/phy/phylink.c

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1064,19 +1064,6 @@ int phylink_ethtool_get_module_eeprom(struct phylink *pl,
10641064
}
10651065
EXPORT_SYMBOL_GPL(phylink_ethtool_get_module_eeprom);
10661066

1067-
int phylink_init_eee(struct phylink *pl, bool clk_stop_enable)
1068-
{
1069-
int ret = -EPROTONOSUPPORT;
1070-
1071-
WARN_ON(!lockdep_rtnl_is_held());
1072-
1073-
if (pl->phydev)
1074-
ret = phy_init_eee(pl->phydev, clk_stop_enable);
1075-
1076-
return ret;
1077-
}
1078-
EXPORT_SYMBOL_GPL(phylink_init_eee);
1079-
10801067
int phylink_get_eee_err(struct phylink *pl)
10811068
{
10821069
int ret = 0;

include/linux/phylink.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,6 @@ int phylink_ethtool_set_pauseparam(struct phylink *,
123123
int phylink_ethtool_get_module_info(struct phylink *, struct ethtool_modinfo *);
124124
int phylink_ethtool_get_module_eeprom(struct phylink *,
125125
struct ethtool_eeprom *, u8 *);
126-
int phylink_init_eee(struct phylink *, bool);
127126
int phylink_get_eee_err(struct phylink *);
128127
int phylink_ethtool_get_eee(struct phylink *, struct ethtool_eee *);
129128
int phylink_ethtool_set_eee(struct phylink *, struct ethtool_eee *);

0 commit comments

Comments
 (0)