net: phy: remove gen10g_suspend and gen10g_resume
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>
This commit is contained in:

committed by
David S. Miller

parent
d7bed825ba
commit
a6d0aa97f4
@@ -529,18 +529,6 @@ int gen10g_config_init(struct phy_device *phydev)
|
|||||||
}
|
}
|
||||||
EXPORT_SYMBOL_GPL(gen10g_config_init);
|
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 = {
|
struct phy_driver genphy_10g_driver = {
|
||||||
.phy_id = 0xffffffff,
|
.phy_id = 0xffffffff,
|
||||||
.phy_id_mask = 0xffffffff,
|
.phy_id_mask = 0xffffffff,
|
||||||
@@ -550,6 +538,4 @@ struct phy_driver genphy_10g_driver = {
|
|||||||
.features = PHY_10GBIT_FEATURES,
|
.features = PHY_10GBIT_FEATURES,
|
||||||
.config_aneg = gen10g_config_aneg,
|
.config_aneg = gen10g_config_aneg,
|
||||||
.read_status = gen10g_read_status,
|
.read_status = gen10g_read_status,
|
||||||
.suspend = gen10g_suspend,
|
|
||||||
.resume = gen10g_resume,
|
|
||||||
};
|
};
|
||||||
|
@@ -1122,8 +1122,6 @@ int gen10g_config_aneg(struct phy_device *phydev);
|
|||||||
int gen10g_read_status(struct phy_device *phydev);
|
int gen10g_read_status(struct phy_device *phydev);
|
||||||
int gen10g_no_soft_reset(struct phy_device *phydev);
|
int gen10g_no_soft_reset(struct phy_device *phydev);
|
||||||
int gen10g_config_init(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)
|
static inline int phy_read_status(struct phy_device *phydev)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user