diff options
author | David S. Miller <davem@davemloft.net> | 2008-11-20 19:44:00 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-11-20 19:44:00 -0500 |
commit | 6ab33d51713d6d60c7677c0d020910a8cb37e513 (patch) | |
tree | 546c2ff099b2757e75cf34ddace874f1220f740e /drivers/net/sh_eth.c | |
parent | 7be6065b39c3f1cfa796667eac1a2170465acc91 (diff) | |
parent | 13d428afc007fcfcd6deeb215618f54cf9c0cae6 (diff) |
Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6
Conflicts:
drivers/net/ixgbe/ixgbe_main.c
include/net/mac80211.h
net/phonet/af_phonet.c
Diffstat (limited to 'drivers/net/sh_eth.c')
-rw-r--r-- | drivers/net/sh_eth.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/sh_eth.c b/drivers/net/sh_eth.c index 077d796ccb70..7f8e514eb5e9 100644 --- a/drivers/net/sh_eth.c +++ b/drivers/net/sh_eth.c | |||
@@ -926,7 +926,7 @@ static int sh_eth_start_xmit(struct sk_buff *skb, struct net_device *ndev) | |||
926 | struct sh_eth_private *mdp = netdev_priv(ndev); | 926 | struct sh_eth_private *mdp = netdev_priv(ndev); |
927 | struct sh_eth_txdesc *txdesc; | 927 | struct sh_eth_txdesc *txdesc; |
928 | u32 entry; | 928 | u32 entry; |
929 | int flags; | 929 | unsigned long flags; |
930 | 930 | ||
931 | spin_lock_irqsave(&mdp->lock, flags); | 931 | spin_lock_irqsave(&mdp->lock, flags); |
932 | if ((mdp->cur_tx - mdp->dirty_tx) >= (TX_RING_SIZE - 4)) { | 932 | if ((mdp->cur_tx - mdp->dirty_tx) >= (TX_RING_SIZE - 4)) { |
@@ -1140,7 +1140,7 @@ static int sh_mdio_init(struct net_device *ndev, int id) | |||
1140 | /* Hook up MII support for ethtool */ | 1140 | /* Hook up MII support for ethtool */ |
1141 | mdp->mii_bus->name = "sh_mii"; | 1141 | mdp->mii_bus->name = "sh_mii"; |
1142 | mdp->mii_bus->parent = &ndev->dev; | 1142 | mdp->mii_bus->parent = &ndev->dev; |
1143 | mdp->mii_bus->id[0] = id; | 1143 | snprintf(mdp->mii_bus->id, MII_BUS_ID_SIZE, "%x", id); |
1144 | 1144 | ||
1145 | /* PHY IRQ */ | 1145 | /* PHY IRQ */ |
1146 | mdp->mii_bus->irq = kmalloc(sizeof(int)*PHY_MAX_ADDR, GFP_KERNEL); | 1146 | mdp->mii_bus->irq = kmalloc(sizeof(int)*PHY_MAX_ADDR, GFP_KERNEL); |