aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/phy/phy_device.c
diff options
context:
space:
mode:
authorstephen hemminger <stephen@networkplumber.org>2014-01-19 14:48:20 -0500
committerDavid S. Miller <davem@davemloft.net>2014-01-19 22:55:50 -0500
commit395056edd687f7b44e6e5c2c3d2725446d762434 (patch)
tree51dfb0fc22b926c765257d7fe9225eeb24cd2bda /drivers/net/phy/phy_device.c
parenta91e6810da3d4e512dc36c4cd655a9bdb471d52b (diff)
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: Stephen Hemminger <stephen@networkplumber.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/phy/phy_device.c')
-rw-r--r--drivers/net/phy/phy_device.c24
1 files changed, 4 insertions, 20 deletions
diff --git a/drivers/net/phy/phy_device.c b/drivers/net/phy/phy_device.c
index 39794c4d7b21..4b03e63639b7 100644
--- a/drivers/net/phy/phy_device.c
+++ b/drivers/net/phy/phy_device.c
@@ -767,12 +767,6 @@ static int genphy_config_advert(struct phy_device *phydev)
767 return changed; 767 return changed;
768} 768}
769 769
770int gen10g_config_advert(struct phy_device *dev)
771{
772 return 0;
773}
774EXPORT_SYMBOL(gen10g_config_advert);
775
776/** 770/**
777 * genphy_setup_forced - configures/forces speed/duplex from @phydev 771 * genphy_setup_forced - configures/forces speed/duplex from @phydev
778 * @phydev: target phy_device struct 772 * @phydev: target phy_device struct
@@ -820,12 +814,6 @@ int genphy_restart_aneg(struct phy_device *phydev)
820} 814}
821EXPORT_SYMBOL(genphy_restart_aneg); 815EXPORT_SYMBOL(genphy_restart_aneg);
822 816
823int gen10g_restart_aneg(struct phy_device *phydev)
824{
825 return 0;
826}
827EXPORT_SYMBOL(gen10g_restart_aneg);
828
829/** 817/**
830 * genphy_config_aneg - restart auto-negotiation or write BMCR 818 * genphy_config_aneg - restart auto-negotiation or write BMCR
831 * @phydev: target phy_device struct 819 * @phydev: target phy_device struct
@@ -867,11 +855,10 @@ int genphy_config_aneg(struct phy_device *phydev)
867} 855}
868EXPORT_SYMBOL(genphy_config_aneg); 856EXPORT_SYMBOL(genphy_config_aneg);
869 857
870int gen10g_config_aneg(struct phy_device *phydev) 858static int gen10g_config_aneg(struct phy_device *phydev)
871{ 859{
872 return 0; 860 return 0;
873} 861}
874EXPORT_SYMBOL(gen10g_config_aneg);
875 862
876/** 863/**
877 * genphy_update_link - update link status in @phydev 864 * genphy_update_link - update link status in @phydev
@@ -1004,7 +991,7 @@ int genphy_read_status(struct phy_device *phydev)
1004} 991}
1005EXPORT_SYMBOL(genphy_read_status); 992EXPORT_SYMBOL(genphy_read_status);
1006 993
1007int gen10g_read_status(struct phy_device *phydev) 994static int gen10g_read_status(struct phy_device *phydev)
1008{ 995{
1009 int devad, reg; 996 int devad, reg;
1010 u32 mmd_mask = phydev->c45_ids.devices_in_package; 997 u32 mmd_mask = phydev->c45_ids.devices_in_package;
@@ -1030,7 +1017,6 @@ int gen10g_read_status(struct phy_device *phydev)
1030 1017
1031 return 0; 1018 return 0;
1032} 1019}
1033EXPORT_SYMBOL(gen10g_read_status);
1034 1020
1035static int genphy_config_init(struct phy_device *phydev) 1021static int genphy_config_init(struct phy_device *phydev)
1036{ 1022{
@@ -1102,11 +1088,10 @@ int genphy_suspend(struct phy_device *phydev)
1102} 1088}
1103EXPORT_SYMBOL(genphy_suspend); 1089EXPORT_SYMBOL(genphy_suspend);
1104 1090
1105int gen10g_suspend(struct phy_device *phydev) 1091static int gen10g_suspend(struct phy_device *phydev)
1106{ 1092{
1107 return 0; 1093 return 0;
1108} 1094}
1109EXPORT_SYMBOL(gen10g_suspend);
1110 1095
1111int genphy_resume(struct phy_device *phydev) 1096int genphy_resume(struct phy_device *phydev)
1112{ 1097{
@@ -1123,11 +1108,10 @@ int genphy_resume(struct phy_device *phydev)
1123} 1108}
1124EXPORT_SYMBOL(genphy_resume); 1109EXPORT_SYMBOL(genphy_resume);
1125 1110
1126int gen10g_resume(struct phy_device *phydev) 1111static int gen10g_resume(struct phy_device *phydev)
1127{ 1112{
1128 return 0; 1113 return 0;
1129} 1114}
1130EXPORT_SYMBOL(gen10g_resume);
1131 1115
1132/** 1116/**
1133 * phy_probe - probe and init a PHY device 1117 * phy_probe - probe and init a PHY device