aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/acenic.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/acenic.c')
-rw-r--r--drivers/net/acenic.c5
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
137static struct pci_device_id acenic_pci_tbl[] = { 138static 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;