aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorSteffen Klassert <klassert@mathematik.tu-chemnitz.de>2006-03-26 04:37:41 -0500
committerLinus Torvalds <torvalds@g5.osdl.org>2006-03-26 11:56:58 -0500
commit373a688742d7ba31cafc4c7b9bc09eba257860bd (patch)
treefb25363f82bc3cab2d5e24369eaedf27f020a37c /drivers
parente94d10eb0d77ae70378f9218631a7be91e0aecff (diff)
[PATCH] 3c59x: use ethtool_op_get_link
Use ethtool_op_get_link instead of vortex_get_link. Signed-off-by: Steffen Klassert <klassert@mathematik.tu-chemnitz.de> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/3c59x.c16
1 files changed, 1 insertions, 15 deletions
diff --git a/drivers/net/3c59x.c b/drivers/net/3c59x.c
index 4655662453ba..1352eb66c742 100644
--- a/drivers/net/3c59x.c
+++ b/drivers/net/3c59x.c
@@ -2960,20 +2960,6 @@ static int vortex_nway_reset(struct net_device *dev)
2960 return rc; 2960 return rc;
2961} 2961}
2962 2962
2963static u32 vortex_get_link(struct net_device *dev)
2964{
2965 struct vortex_private *vp = netdev_priv(dev);
2966 void __iomem *ioaddr = vp->ioaddr;
2967 unsigned long flags;
2968 int rc;
2969
2970 spin_lock_irqsave(&vp->lock, flags);
2971 EL3WINDOW(4);
2972 rc = mii_link_ok(&vp->mii);
2973 spin_unlock_irqrestore(&vp->lock, flags);
2974 return rc;
2975}
2976
2977static int vortex_get_settings(struct net_device *dev, struct ethtool_cmd *cmd) 2963static int vortex_get_settings(struct net_device *dev, struct ethtool_cmd *cmd)
2978{ 2964{
2979 struct vortex_private *vp = netdev_priv(dev); 2965 struct vortex_private *vp = netdev_priv(dev);
@@ -3075,7 +3061,7 @@ static struct ethtool_ops vortex_ethtool_ops = {
3075 .get_stats_count = vortex_get_stats_count, 3061 .get_stats_count = vortex_get_stats_count,
3076 .get_settings = vortex_get_settings, 3062 .get_settings = vortex_get_settings,
3077 .set_settings = vortex_set_settings, 3063 .set_settings = vortex_set_settings,
3078 .get_link = vortex_get_link, 3064 .get_link = ethtool_op_get_link,
3079 .nway_reset = vortex_nway_reset, 3065 .nway_reset = vortex_nway_reset,
3080 .get_perm_addr = ethtool_op_get_perm_addr, 3066 .get_perm_addr = ethtool_op_get_perm_addr,
3081}; 3067};