Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 49040
b: refs/heads/master
c: 140e807
h: refs/heads/master
v: v3
  • Loading branch information
Haavard Skinnemoen authored and Jeff Garzik committed Feb 17, 2007
1 parent ecb388a commit 395ca90
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 22 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: daeafdc360f91d286490105e67b13f094381e23f
refs/heads/master: 140e807dd7d6aa68e601f50a10abd5351e06126f
24 changes: 3 additions & 21 deletions trunk/drivers/net/macb.c
Original file line number Diff line number Diff line change
Expand Up @@ -881,27 +881,15 @@ static struct net_device_stats *macb_get_stats(struct net_device *dev)
static int macb_get_settings(struct net_device *dev, struct ethtool_cmd *cmd)
{
struct macb *bp = netdev_priv(dev);
int ret;
unsigned long flags;

spin_lock_irqsave(&bp->lock, flags);
ret = mii_ethtool_gset(&bp->mii, cmd);
spin_unlock_irqrestore(&bp->lock, flags);

return ret;
return mii_ethtool_gset(&bp->mii, cmd);
}

static int macb_set_settings(struct net_device *dev, struct ethtool_cmd *cmd)
{
struct macb *bp = netdev_priv(dev);
int ret;
unsigned long flags;

spin_lock_irqsave(&bp->lock, flags);
ret = mii_ethtool_sset(&bp->mii, cmd);
spin_unlock_irqrestore(&bp->lock, flags);

return ret;
return mii_ethtool_sset(&bp->mii, cmd);
}

static void macb_get_drvinfo(struct net_device *dev, struct ethtool_drvinfo *info)
Expand Down Expand Up @@ -930,17 +918,11 @@ static struct ethtool_ops macb_ethtool_ops = {
static int macb_ioctl(struct net_device *dev, struct ifreq *rq, int cmd)
{
struct macb *bp = netdev_priv(dev);
int ret;
unsigned long flags;

if (!netif_running(dev))
return -EINVAL;

spin_lock_irqsave(&bp->lock, flags);
ret = generic_mii_ioctl(&bp->mii, if_mii(rq), cmd, NULL);
spin_unlock_irqrestore(&bp->lock, flags);

return ret;
return generic_mii_ioctl(&bp->mii, if_mii(rq), cmd, NULL);
}

static ssize_t macb_mii_show(const struct device *_dev, char *buf,
Expand Down

0 comments on commit 395ca90

Please sign in to comment.