aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/sh_eth.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/sh_eth.c')
-rw-r--r--drivers/net/sh_eth.c4
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);