aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/sunlance.c
diff options
context:
space:
mode:
authorGrant Likely <grant.likely@secretlab.ca>2010-05-22 02:36:56 -0400
committerGrant Likely <grant.likely@secretlab.ca>2010-05-22 02:36:56 -0400
commitcf9b59e9d3e008591d1f54830f570982bb307a0d (patch)
tree113478ce8fd8c832ba726ffdf59b82cb46356476 /drivers/net/sunlance.c
parent44504b2bebf8b5823c59484e73096a7d6574471d (diff)
parentf4b87dee923342505e1ddba8d34ce9de33e75050 (diff)
Merge remote branch 'origin' into secretlab/next-devicetree
Merging in current state of Linus' tree to deal with merge conflicts and build failures in vio.c after merge. Conflicts: drivers/i2c/busses/i2c-cpm.c drivers/i2c/busses/i2c-mpc.c drivers/net/gianfar.c Also fixed up one line in arch/powerpc/kernel/vio.c to use the correct node pointer. Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Diffstat (limited to 'drivers/net/sunlance.c')
-rw-r--r--drivers/net/sunlance.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/drivers/net/sunlance.c b/drivers/net/sunlance.c
index 0fc014ef9e98..7d9c33dd9d1a 100644
--- a/drivers/net/sunlance.c
+++ b/drivers/net/sunlance.c
@@ -1003,7 +1003,7 @@ static int lance_reset(struct net_device *dev)
1003 } 1003 }
1004 lp->init_ring(dev); 1004 lp->init_ring(dev);
1005 load_csrs(lp); 1005 load_csrs(lp);
1006 dev->trans_start = jiffies; 1006 dev->trans_start = jiffies; /* prevent tx timeout */
1007 status = init_restart_lance(lp); 1007 status = init_restart_lance(lp);
1008 return status; 1008 return status;
1009} 1009}
@@ -1054,7 +1054,7 @@ static void lance_piocopy_from_skb(void __iomem *dest, unsigned char *src, int l
1054 } 1054 }
1055 src = (char *) p16; 1055 src = (char *) p16;
1056 break; 1056 break;
1057 }; 1057 }
1058 if (len >= 2) { 1058 if (len >= 2) {
1059 u16 val = src[0] << 8 | src[1]; 1059 u16 val = src[0] << 8 | src[1];
1060 sbus_writew(val, piobuf); 1060 sbus_writew(val, piobuf);
@@ -1160,7 +1160,6 @@ static int lance_start_xmit(struct sk_buff *skb, struct net_device *dev)
1160 1160
1161 spin_unlock_irq(&lp->lock); 1161 spin_unlock_irq(&lp->lock);
1162 1162
1163 dev->trans_start = jiffies;
1164 dev_kfree_skb(skb); 1163 dev_kfree_skb(skb);
1165 1164
1166 return NETDEV_TX_OK; 1165 return NETDEV_TX_OK;
@@ -1170,7 +1169,7 @@ static int lance_start_xmit(struct sk_buff *skb, struct net_device *dev)
1170static void lance_load_multicast(struct net_device *dev) 1169static void lance_load_multicast(struct net_device *dev)
1171{ 1170{
1172 struct lance_private *lp = netdev_priv(dev); 1171 struct lance_private *lp = netdev_priv(dev);
1173 struct dev_mc_list *dmi; 1172 struct netdev_hw_addr *ha;
1174 char *addrs; 1173 char *addrs;
1175 u32 crc; 1174 u32 crc;
1176 u32 val; 1175 u32 val;
@@ -1195,8 +1194,8 @@ static void lance_load_multicast(struct net_device *dev)
1195 return; 1194 return;
1196 1195
1197 /* Add addresses */ 1196 /* Add addresses */
1198 netdev_for_each_mc_addr(dmi, dev) { 1197 netdev_for_each_mc_addr(ha, dev) {
1199 addrs = dmi->dmi_addr; 1198 addrs = ha->addr;
1200 1199
1201 /* multicast address? */ 1200 /* multicast address? */
1202 if (!(*addrs & 1)) 1201 if (!(*addrs & 1))