diff options
author | Grant Likely <grant.likely@secretlab.ca> | 2010-05-22 02:36:56 -0400 |
---|---|---|
committer | Grant Likely <grant.likely@secretlab.ca> | 2010-05-22 02:36:56 -0400 |
commit | cf9b59e9d3e008591d1f54830f570982bb307a0d (patch) | |
tree | 113478ce8fd8c832ba726ffdf59b82cb46356476 /drivers/net/greth.c | |
parent | 44504b2bebf8b5823c59484e73096a7d6574471d (diff) | |
parent | f4b87dee923342505e1ddba8d34ce9de33e75050 (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/greth.c')
-rw-r--r-- | drivers/net/greth.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/net/greth.c b/drivers/net/greth.c index 61fd54d35f63..f37a4c143ddd 100644 --- a/drivers/net/greth.c +++ b/drivers/net/greth.c | |||
@@ -895,7 +895,6 @@ static int greth_rx_gbit(struct net_device *dev, int limit) | |||
895 | else | 895 | else |
896 | skb->ip_summed = CHECKSUM_NONE; | 896 | skb->ip_summed = CHECKSUM_NONE; |
897 | 897 | ||
898 | skb->dev = dev; | ||
899 | skb->protocol = eth_type_trans(skb, dev); | 898 | skb->protocol = eth_type_trans(skb, dev); |
900 | dev->stats.rx_packets++; | 899 | dev->stats.rx_packets++; |
901 | netif_receive_skb(skb); | 900 | netif_receive_skb(skb); |
@@ -990,7 +989,7 @@ static u32 greth_hash_get_index(__u8 *addr) | |||
990 | 989 | ||
991 | static void greth_set_hash_filter(struct net_device *dev) | 990 | static void greth_set_hash_filter(struct net_device *dev) |
992 | { | 991 | { |
993 | struct dev_mc_list *curr; | 992 | struct netdev_hw_addr *ha; |
994 | struct greth_private *greth = netdev_priv(dev); | 993 | struct greth_private *greth = netdev_priv(dev); |
995 | struct greth_regs *regs = (struct greth_regs *) greth->regs; | 994 | struct greth_regs *regs = (struct greth_regs *) greth->regs; |
996 | u32 mc_filter[2]; | 995 | u32 mc_filter[2]; |
@@ -998,8 +997,8 @@ static void greth_set_hash_filter(struct net_device *dev) | |||
998 | 997 | ||
999 | mc_filter[0] = mc_filter[1] = 0; | 998 | mc_filter[0] = mc_filter[1] = 0; |
1000 | 999 | ||
1001 | netdev_for_each_mc_addr(curr, dev) { | 1000 | netdev_for_each_mc_addr(ha, dev) { |
1002 | bitnr = greth_hash_get_index(curr->dmi_addr); | 1001 | bitnr = greth_hash_get_index(ha->addr); |
1003 | mc_filter[bitnr >> 5] |= 1 << (bitnr & 31); | 1002 | mc_filter[bitnr >> 5] |= 1 << (bitnr & 31); |
1004 | } | 1003 | } |
1005 | 1004 | ||