diff options
author | Andrea Bastoni <bastoni@cs.unc.edu> | 2010-05-30 19:16:45 -0400 |
---|---|---|
committer | Andrea Bastoni <bastoni@cs.unc.edu> | 2010-05-30 19:16:45 -0400 |
commit | ada47b5fe13d89735805b566185f4885f5a3f750 (patch) | |
tree | 644b88f8a71896307d71438e9b3af49126ffb22b /drivers/net/acenic.c | |
parent | 43e98717ad40a4ae64545b5ba047c7b86aa44f4f (diff) | |
parent | 3280f21d43ee541f97f8cda5792150d2dbec20d5 (diff) |
Merge branch 'wip-2.6.34' into old-private-masterarchived-private-master
Diffstat (limited to 'drivers/net/acenic.c')
-rw-r--r-- | drivers/net/acenic.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/net/acenic.c b/drivers/net/acenic.c index d82a9a994753..97a3dfd94dfa 100644 --- a/drivers/net/acenic.c +++ b/drivers/net/acenic.c | |||
@@ -67,6 +67,7 @@ | |||
67 | #include <linux/highmem.h> | 67 | #include <linux/highmem.h> |
68 | #include <linux/sockios.h> | 68 | #include <linux/sockios.h> |
69 | #include <linux/firmware.h> | 69 | #include <linux/firmware.h> |
70 | #include <linux/slab.h> | ||
70 | 71 | ||
71 | #if defined(CONFIG_VLAN_8021Q) || defined(CONFIG_VLAN_8021Q_MODULE) | 72 | #if defined(CONFIG_VLAN_8021Q) || defined(CONFIG_VLAN_8021Q_MODULE) |
72 | #include <linux/if_vlan.h> | 73 | #include <linux/if_vlan.h> |
@@ -134,7 +135,7 @@ | |||
134 | #define PCI_DEVICE_ID_SGI_ACENIC 0x0009 | 135 | #define PCI_DEVICE_ID_SGI_ACENIC 0x0009 |
135 | #endif | 136 | #endif |
136 | 137 | ||
137 | static struct pci_device_id acenic_pci_tbl[] = { | 138 | static DEFINE_PCI_DEVICE_TABLE(acenic_pci_tbl) = { |
138 | { PCI_VENDOR_ID_ALTEON, PCI_DEVICE_ID_ALTEON_ACENIC_FIBRE, | 139 | { PCI_VENDOR_ID_ALTEON, PCI_DEVICE_ID_ALTEON_ACENIC_FIBRE, |
139 | PCI_ANY_ID, PCI_ANY_ID, PCI_CLASS_NETWORK_ETHERNET << 8, 0xffff00, }, | 140 | PCI_ANY_ID, PCI_ANY_ID, PCI_CLASS_NETWORK_ETHERNET << 8, 0xffff00, }, |
140 | { PCI_VENDOR_ID_ALTEON, PCI_DEVICE_ID_ALTEON_ACENIC_COPPER, | 141 | { PCI_VENDOR_ID_ALTEON, PCI_DEVICE_ID_ALTEON_ACENIC_COPPER, |
@@ -2845,7 +2846,7 @@ static void ace_set_multicast_list(struct net_device *dev) | |||
2845 | * set the entire multicast list at a time and keeping track of | 2846 | * set the entire multicast list at a time and keeping track of |
2846 | * it here is going to be messy. | 2847 | * it here is going to be messy. |
2847 | */ | 2848 | */ |
2848 | if ((dev->mc_count) && !(ap->mcast_all)) { | 2849 | if (!netdev_mc_empty(dev) && !ap->mcast_all) { |
2849 | cmd.evt = C_SET_MULTICAST_MODE; | 2850 | cmd.evt = C_SET_MULTICAST_MODE; |
2850 | cmd.code = C_C_MCAST_ENABLE; | 2851 | cmd.code = C_C_MCAST_ENABLE; |
2851 | cmd.idx = 0; | 2852 | cmd.idx = 0; |