aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/fec_mpc52xx.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/fec_mpc52xx.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/fec_mpc52xx.c')
-rw-r--r--drivers/net/fec_mpc52xx.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/drivers/net/fec_mpc52xx.c b/drivers/net/fec_mpc52xx.c
index be540b67ea57..25e6cc6840b1 100644
--- a/drivers/net/fec_mpc52xx.c
+++ b/drivers/net/fec_mpc52xx.c
@@ -327,7 +327,6 @@ static int mpc52xx_fec_start_xmit(struct sk_buff *skb, struct net_device *dev)
327 } 327 }
328 328
329 spin_lock_irqsave(&priv->lock, flags); 329 spin_lock_irqsave(&priv->lock, flags);
330 dev->trans_start = jiffies;
331 330
332 bd = (struct bcom_fec_bd *) 331 bd = (struct bcom_fec_bd *)
333 bcom_prepare_next_buffer(priv->tx_dmatsk); 332 bcom_prepare_next_buffer(priv->tx_dmatsk);
@@ -436,7 +435,6 @@ static irqreturn_t mpc52xx_fec_rx_interrupt(int irq, void *dev_id)
436 DMA_FROM_DEVICE); 435 DMA_FROM_DEVICE);
437 length = status & BCOM_FEC_RX_BD_LEN_MASK; 436 length = status & BCOM_FEC_RX_BD_LEN_MASK;
438 skb_put(rskb, length - 4); /* length without CRC32 */ 437 skb_put(rskb, length - 4); /* length without CRC32 */
439 rskb->dev = dev;
440 rskb->protocol = eth_type_trans(rskb, dev); 438 rskb->protocol = eth_type_trans(rskb, dev);
441 netif_rx(rskb); 439 netif_rx(rskb);
442 440
@@ -576,12 +574,12 @@ static void mpc52xx_fec_set_multicast_list(struct net_device *dev)
576 out_be32(&fec->gaddr2, 0xffffffff); 574 out_be32(&fec->gaddr2, 0xffffffff);
577 } else { 575 } else {
578 u32 crc; 576 u32 crc;
579 struct dev_mc_list *dmi; 577 struct netdev_hw_addr *ha;
580 u32 gaddr1 = 0x00000000; 578 u32 gaddr1 = 0x00000000;
581 u32 gaddr2 = 0x00000000; 579 u32 gaddr2 = 0x00000000;
582 580
583 netdev_for_each_mc_addr(dmi, dev) { 581 netdev_for_each_mc_addr(ha, dev) {
584 crc = ether_crc_le(6, dmi->dmi_addr) >> 26; 582 crc = ether_crc_le(6, ha->addr) >> 26;
585 if (crc >= 32) 583 if (crc >= 32)
586 gaddr1 |= 1 << (crc-32); 584 gaddr1 |= 1 << (crc-32);
587 else 585 else