diff options
Diffstat (limited to 'drivers/net/arm')
-rw-r--r-- | drivers/net/arm/ks8695net.c | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/drivers/net/arm/ks8695net.c b/drivers/net/arm/ks8695net.c index 8820fcdca10b..62d6f88cbab5 100644 --- a/drivers/net/arm/ks8695net.c +++ b/drivers/net/arm/ks8695net.c | |||
@@ -994,20 +994,6 @@ ks8695_wan_nwayreset(struct net_device *ndev) | |||
994 | } | 994 | } |
995 | 995 | ||
996 | /** | 996 | /** |
997 | * ks8695_wan_get_link - Retrieve link status of network interface | ||
998 | * @ndev: The network interface to retrive the link status of. | ||
999 | */ | ||
1000 | static u32 | ||
1001 | ks8695_wan_get_link(struct net_device *ndev) | ||
1002 | { | ||
1003 | struct ks8695_priv *ksp = netdev_priv(ndev); | ||
1004 | u32 ctrl; | ||
1005 | |||
1006 | ctrl = readl(ksp->phyiface_regs + KS8695_WMC); | ||
1007 | return ctrl & WMC_WLS; | ||
1008 | } | ||
1009 | |||
1010 | /** | ||
1011 | * ks8695_wan_get_pause - Retrieve network pause/flow-control advertising | 997 | * ks8695_wan_get_pause - Retrieve network pause/flow-control advertising |
1012 | * @ndev: The device to retrieve settings from | 998 | * @ndev: The device to retrieve settings from |
1013 | * @param: The structure to fill out with the information | 999 | * @param: The structure to fill out with the information |
@@ -1058,7 +1044,7 @@ static const struct ethtool_ops ks8695_wan_ethtool_ops = { | |||
1058 | .get_settings = ks8695_wan_get_settings, | 1044 | .get_settings = ks8695_wan_get_settings, |
1059 | .set_settings = ks8695_wan_set_settings, | 1045 | .set_settings = ks8695_wan_set_settings, |
1060 | .nway_reset = ks8695_wan_nwayreset, | 1046 | .nway_reset = ks8695_wan_nwayreset, |
1061 | .get_link = ks8695_wan_get_link, | 1047 | .get_link = ethtool_op_get_link, |
1062 | .get_pauseparam = ks8695_wan_get_pause, | 1048 | .get_pauseparam = ks8695_wan_get_pause, |
1063 | .get_drvinfo = ks8695_get_drvinfo, | 1049 | .get_drvinfo = ks8695_get_drvinfo, |
1064 | }; | 1050 | }; |