aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ibm_newemac
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/ibm_newemac
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/ibm_newemac')
-rw-r--r--drivers/net/ibm_newemac/core.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/net/ibm_newemac/core.c b/drivers/net/ibm_newemac/core.c
index f8c36a5eb4d7..b150c102ca5a 100644
--- a/drivers/net/ibm_newemac/core.c
+++ b/drivers/net/ibm_newemac/core.c
@@ -390,18 +390,19 @@ static void emac_hash_mc(struct emac_instance *dev)
390 const int regs = EMAC_XAHT_REGS(dev); 390 const int regs = EMAC_XAHT_REGS(dev);
391 u32 *gaht_base = emac_gaht_base(dev); 391 u32 *gaht_base = emac_gaht_base(dev);
392 u32 gaht_temp[regs]; 392 u32 gaht_temp[regs];
393 struct dev_mc_list *dmi; 393 struct netdev_hw_addr *ha;
394 int i; 394 int i;
395 395
396 DBG(dev, "hash_mc %d" NL, netdev_mc_count(dev->ndev)); 396 DBG(dev, "hash_mc %d" NL, netdev_mc_count(dev->ndev));
397 397
398 memset(gaht_temp, 0, sizeof (gaht_temp)); 398 memset(gaht_temp, 0, sizeof (gaht_temp));
399 399
400 netdev_for_each_mc_addr(dmi, dev->ndev) { 400 netdev_for_each_mc_addr(ha, dev->ndev) {
401 int slot, reg, mask; 401 int slot, reg, mask;
402 DBG2(dev, "mc %pM" NL, dmi->dmi_addr); 402 DBG2(dev, "mc %pM" NL, ha->addr);
403 403
404 slot = EMAC_XAHT_CRC_TO_SLOT(dev, ether_crc(ETH_ALEN, dmi->dmi_addr)); 404 slot = EMAC_XAHT_CRC_TO_SLOT(dev,
405 ether_crc(ETH_ALEN, ha->addr));
405 reg = EMAC_XAHT_SLOT_TO_REG(dev, slot); 406 reg = EMAC_XAHT_SLOT_TO_REG(dev, slot);
406 mask = EMAC_XAHT_SLOT_TO_MASK(dev, slot); 407 mask = EMAC_XAHT_SLOT_TO_MASK(dev, slot);
407 408
@@ -1178,7 +1179,7 @@ static int emac_open(struct net_device *ndev)
1178 netif_carrier_on(dev->ndev); 1179 netif_carrier_on(dev->ndev);
1179 1180
1180 /* Required for Pause packet support in EMAC */ 1181 /* Required for Pause packet support in EMAC */
1181 dev_mc_add(ndev, default_mcast_addr, sizeof(default_mcast_addr), 1); 1182 dev_mc_add_global(ndev, default_mcast_addr);
1182 1183
1183 emac_configure(dev); 1184 emac_configure(dev);
1184 mal_poll_add(dev->mal, &dev->commac); 1185 mal_poll_add(dev->mal, &dev->commac);
@@ -1701,7 +1702,6 @@ static int emac_poll_rx(void *param, int budget)
1701 1702
1702 skb_put(skb, len); 1703 skb_put(skb, len);
1703 push_packet: 1704 push_packet:
1704 skb->dev = dev->ndev;
1705 skb->protocol = eth_type_trans(skb, dev->ndev); 1705 skb->protocol = eth_type_trans(skb, dev->ndev);
1706 emac_rx_csum(dev, skb, ctrl); 1706 emac_rx_csum(dev, skb, ctrl);
1707 1707