From mboxrd@z Thu Jan 1 00:00:00 1970 From: Russell King Subject: [PATCH 05/11] phylink: remove phylink_init_eee() Date: Fri, 01 Dec 2017 10:24:37 +0000 Message-ID: References: <20171201102306.GA18792@n2100.armlinux.org.uk> Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Cc: linux-doc@vger.kernel.org, netdev@vger.kernel.org To: Andrew Lunn , Florian Fainelli , Jonathan Corbet Return-path: In-Reply-To: <20171201102306.GA18792@n2100.armlinux.org.uk> Content-Disposition: inline Sender: linux-doc-owner@vger.kernel.org List-Id: netdev.vger.kernel.org phylink_init_eee() serves no purpose, remove it. Signed-off-by: Russell King --- drivers/net/phy/phylink.c | 13 ------------- include/linux/phylink.h | 1 - 2 files changed, 14 deletions(-) diff --git a/drivers/net/phy/phylink.c b/drivers/net/phy/phylink.c index 06c6ad0603ac..560486463930 100644 --- a/drivers/net/phy/phylink.c +++ b/drivers/net/phy/phylink.c @@ -1064,19 +1064,6 @@ int phylink_ethtool_get_module_eeprom(struct phylink *pl, } EXPORT_SYMBOL_GPL(phylink_ethtool_get_module_eeprom); -int phylink_init_eee(struct phylink *pl, bool clk_stop_enable) -{ - int ret = -EPROTONOSUPPORT; - - WARN_ON(!lockdep_rtnl_is_held()); - - if (pl->phydev) - ret = phy_init_eee(pl->phydev, clk_stop_enable); - - return ret; -} -EXPORT_SYMBOL_GPL(phylink_init_eee); - int phylink_get_eee_err(struct phylink *pl) { int ret = 0; diff --git a/include/linux/phylink.h b/include/linux/phylink.h index cab22ad3bd6f..4d0f42da9078 100644 --- a/include/linux/phylink.h +++ b/include/linux/phylink.h @@ -123,7 +123,6 @@ int phylink_ethtool_set_pauseparam(struct phylink *, int phylink_ethtool_get_module_info(struct phylink *, struct ethtool_modinfo *); int phylink_ethtool_get_module_eeprom(struct phylink *, struct ethtool_eeprom *, u8 *); -int phylink_init_eee(struct phylink *, bool); int phylink_get_eee_err(struct phylink *); int phylink_ethtool_get_eee(struct phylink *, struct ethtool_eee *); int phylink_ethtool_set_eee(struct phylink *, struct ethtool_eee *); -- 2.7.4