diff options
Diffstat (limited to 'drivers/net/sfc/efx.c')
-rw-r--r-- | drivers/net/sfc/efx.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/sfc/efx.c b/drivers/net/sfc/efx.c index 46997e177ee3..dc58d9fd0f32 100644 --- a/drivers/net/sfc/efx.c +++ b/drivers/net/sfc/efx.c | |||
@@ -1615,7 +1615,7 @@ static void efx_set_multicast_list(struct net_device *net_dev) | |||
1615 | memset(mc_hash, 0xff, sizeof(*mc_hash)); | 1615 | memset(mc_hash, 0xff, sizeof(*mc_hash)); |
1616 | } else { | 1616 | } else { |
1617 | memset(mc_hash, 0x00, sizeof(*mc_hash)); | 1617 | memset(mc_hash, 0x00, sizeof(*mc_hash)); |
1618 | for (i = 0; i < net_dev->mc_count; i++) { | 1618 | for (i = 0; i < netdev_mc_count(net_dev); i++) { |
1619 | crc = ether_crc_le(ETH_ALEN, mc_list->dmi_addr); | 1619 | crc = ether_crc_le(ETH_ALEN, mc_list->dmi_addr); |
1620 | bit = crc & (EFX_MCAST_HASH_ENTRIES - 1); | 1620 | bit = crc & (EFX_MCAST_HASH_ENTRIES - 1); |
1621 | set_bit_le(bit, mc_hash->byte); | 1621 | set_bit_le(bit, mc_hash->byte); |
@@ -1940,7 +1940,7 @@ void efx_schedule_reset(struct efx_nic *efx, enum reset_type type) | |||
1940 | **************************************************************************/ | 1940 | **************************************************************************/ |
1941 | 1941 | ||
1942 | /* PCI device ID table */ | 1942 | /* PCI device ID table */ |
1943 | static struct pci_device_id efx_pci_table[] __devinitdata = { | 1943 | static DEFINE_PCI_DEVICE_TABLE(efx_pci_table) = { |
1944 | {PCI_DEVICE(EFX_VENDID_SFC, FALCON_A_P_DEVID), | 1944 | {PCI_DEVICE(EFX_VENDID_SFC, FALCON_A_P_DEVID), |
1945 | .driver_data = (unsigned long) &falcon_a1_nic_type}, | 1945 | .driver_data = (unsigned long) &falcon_a1_nic_type}, |
1946 | {PCI_DEVICE(EFX_VENDID_SFC, FALCON_B_P_DEVID), | 1946 | {PCI_DEVICE(EFX_VENDID_SFC, FALCON_B_P_DEVID), |