net: phy: remove gen10g_suspend and gen10g_resume
authorHeiner Kallweit <hkallweit1@gmail.com>
Sat, 2 Mar 2019 16:10:36 +0000 (17:10 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 4 Mar 2019 05:47:42 +0000 (21:47 -0800)
phy_suspend() and phy_resume() are no-ops anyway if no callback is
defined. Therefore we don't need these stubs.

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/phy-c45.c
include/linux/phy.h

index 49e7cd08b05fffdf956d40c4f90b4e114bbc51be..3ddbb9c32ddaafaf332cfe9ade3675cdd0931a39 100644 (file)
@@ -529,18 +529,6 @@ int gen10g_config_init(struct phy_device *phydev)
 }
 EXPORT_SYMBOL_GPL(gen10g_config_init);
 
-int gen10g_suspend(struct phy_device *phydev)
-{
-       return 0;
-}
-EXPORT_SYMBOL_GPL(gen10g_suspend);
-
-int gen10g_resume(struct phy_device *phydev)
-{
-       return 0;
-}
-EXPORT_SYMBOL_GPL(gen10g_resume);
-
 struct phy_driver genphy_10g_driver = {
        .phy_id         = 0xffffffff,
        .phy_id_mask    = 0xffffffff,
@@ -550,6 +538,4 @@ struct phy_driver genphy_10g_driver = {
        .features       = PHY_10GBIT_FEATURES,
        .config_aneg    = gen10g_config_aneg,
        .read_status    = gen10g_read_status,
-       .suspend        = gen10g_suspend,
-       .resume         = gen10g_resume,
 };
index bfe60e2a517412c3d58766af5d8673d7431b84e9..c69de3b87e87f2a13ec371f772a3cc054edc9623 100644 (file)
@@ -1122,8 +1122,6 @@ int gen10g_config_aneg(struct phy_device *phydev);
 int gen10g_read_status(struct phy_device *phydev);
 int gen10g_no_soft_reset(struct phy_device *phydev);
 int gen10g_config_init(struct phy_device *phydev);
-int gen10g_suspend(struct phy_device *phydev);
-int gen10g_resume(struct phy_device *phydev);
 
 static inline int phy_read_status(struct phy_device *phydev)
 {