diff options
Diffstat (limited to 'drivers/net/arm/at91_ether.c')
| -rw-r--r-- | drivers/net/arm/at91_ether.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/net/arm/at91_ether.c b/drivers/net/arm/at91_ether.c index 8b23d5a175bf..0adab30f626b 100644 --- a/drivers/net/arm/at91_ether.c +++ b/drivers/net/arm/at91_ether.c | |||
| @@ -27,6 +27,7 @@ | |||
| 27 | #include <linux/ethtool.h> | 27 | #include <linux/ethtool.h> |
| 28 | #include <linux/platform_device.h> | 28 | #include <linux/platform_device.h> |
| 29 | #include <linux/clk.h> | 29 | #include <linux/clk.h> |
| 30 | #include <linux/gfp.h> | ||
| 30 | 31 | ||
| 31 | #include <asm/io.h> | 32 | #include <asm/io.h> |
| 32 | #include <asm/uaccess.h> | 33 | #include <asm/uaccess.h> |
| @@ -556,14 +557,14 @@ static int hash_get_index(__u8 *addr) | |||
| 556 | */ | 557 | */ |
| 557 | static void at91ether_sethashtable(struct net_device *dev) | 558 | static void at91ether_sethashtable(struct net_device *dev) |
| 558 | { | 559 | { |
| 559 | struct dev_mc_list *curr; | 560 | struct netdev_hw_addr *ha; |
| 560 | unsigned long mc_filter[2]; | 561 | unsigned long mc_filter[2]; |
| 561 | unsigned int bitnr; | 562 | unsigned int bitnr; |
| 562 | 563 | ||
| 563 | mc_filter[0] = mc_filter[1] = 0; | 564 | mc_filter[0] = mc_filter[1] = 0; |
| 564 | 565 | ||
| 565 | netdev_for_each_mc_addr(curr, dev) { | 566 | netdev_for_each_mc_addr(ha, dev) { |
| 566 | bitnr = hash_get_index(curr->dmi_addr); | 567 | bitnr = hash_get_index(ha->addr); |
| 567 | mc_filter[bitnr >> 5] |= 1 << (bitnr & 31); | 568 | mc_filter[bitnr >> 5] |= 1 << (bitnr & 31); |
| 568 | } | 569 | } |
| 569 | 570 | ||
