Commit 395056ed authored by stephen hemminger's avatar stephen hemminger Committed by David S. Miller

phy: cleanup 10g code

Code should avoid needless exports, don't export something unless it used.
Make local functions static and remove unused stubs.
Signed-off-by: default avatarStephen Hemminger <stephen@networkplumber.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent a91e6810
...@@ -767,12 +767,6 @@ static int genphy_config_advert(struct phy_device *phydev) ...@@ -767,12 +767,6 @@ static int genphy_config_advert(struct phy_device *phydev)
return changed; return changed;
} }
int gen10g_config_advert(struct phy_device *dev)
{
return 0;
}
EXPORT_SYMBOL(gen10g_config_advert);
/** /**
* genphy_setup_forced - configures/forces speed/duplex from @phydev * genphy_setup_forced - configures/forces speed/duplex from @phydev
* @phydev: target phy_device struct * @phydev: target phy_device struct
...@@ -820,12 +814,6 @@ int genphy_restart_aneg(struct phy_device *phydev) ...@@ -820,12 +814,6 @@ int genphy_restart_aneg(struct phy_device *phydev)
} }
EXPORT_SYMBOL(genphy_restart_aneg); EXPORT_SYMBOL(genphy_restart_aneg);
int gen10g_restart_aneg(struct phy_device *phydev)
{
return 0;
}
EXPORT_SYMBOL(gen10g_restart_aneg);
/** /**
* genphy_config_aneg - restart auto-negotiation or write BMCR * genphy_config_aneg - restart auto-negotiation or write BMCR
* @phydev: target phy_device struct * @phydev: target phy_device struct
...@@ -867,11 +855,10 @@ int genphy_config_aneg(struct phy_device *phydev) ...@@ -867,11 +855,10 @@ int genphy_config_aneg(struct phy_device *phydev)
} }
EXPORT_SYMBOL(genphy_config_aneg); EXPORT_SYMBOL(genphy_config_aneg);
int gen10g_config_aneg(struct phy_device *phydev) static int gen10g_config_aneg(struct phy_device *phydev)
{ {
return 0; return 0;
} }
EXPORT_SYMBOL(gen10g_config_aneg);
/** /**
* genphy_update_link - update link status in @phydev * genphy_update_link - update link status in @phydev
...@@ -1004,7 +991,7 @@ int genphy_read_status(struct phy_device *phydev) ...@@ -1004,7 +991,7 @@ int genphy_read_status(struct phy_device *phydev)
} }
EXPORT_SYMBOL(genphy_read_status); EXPORT_SYMBOL(genphy_read_status);
int gen10g_read_status(struct phy_device *phydev) static int gen10g_read_status(struct phy_device *phydev)
{ {
int devad, reg; int devad, reg;
u32 mmd_mask = phydev->c45_ids.devices_in_package; u32 mmd_mask = phydev->c45_ids.devices_in_package;
...@@ -1030,7 +1017,6 @@ int gen10g_read_status(struct phy_device *phydev) ...@@ -1030,7 +1017,6 @@ int gen10g_read_status(struct phy_device *phydev)
return 0; return 0;
} }
EXPORT_SYMBOL(gen10g_read_status);
static int genphy_config_init(struct phy_device *phydev) static int genphy_config_init(struct phy_device *phydev)
{ {
...@@ -1102,11 +1088,10 @@ int genphy_suspend(struct phy_device *phydev) ...@@ -1102,11 +1088,10 @@ int genphy_suspend(struct phy_device *phydev)
} }
EXPORT_SYMBOL(genphy_suspend); EXPORT_SYMBOL(genphy_suspend);
int gen10g_suspend(struct phy_device *phydev) static int gen10g_suspend(struct phy_device *phydev)
{ {
return 0; return 0;
} }
EXPORT_SYMBOL(gen10g_suspend);
int genphy_resume(struct phy_device *phydev) int genphy_resume(struct phy_device *phydev)
{ {
...@@ -1123,11 +1108,10 @@ int genphy_resume(struct phy_device *phydev) ...@@ -1123,11 +1108,10 @@ int genphy_resume(struct phy_device *phydev)
} }
EXPORT_SYMBOL(genphy_resume); EXPORT_SYMBOL(genphy_resume);
int gen10g_resume(struct phy_device *phydev) static int gen10g_resume(struct phy_device *phydev)
{ {
return 0; return 0;
} }
EXPORT_SYMBOL(gen10g_resume);
/** /**
* phy_probe - probe and init a PHY device * phy_probe - probe and init a PHY device
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment