aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ioc3-eth.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/ioc3-eth.c')
-rw-r--r--drivers/net/ioc3-eth.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/net/ioc3-eth.c b/drivers/net/ioc3-eth.c
index 8ec15ab8c8c2..8f6197d647c0 100644
--- a/drivers/net/ioc3-eth.c
+++ b/drivers/net/ioc3-eth.c
@@ -44,6 +44,7 @@
44#include <linux/tcp.h> 44#include <linux/tcp.h>
45#include <linux/udp.h> 45#include <linux/udp.h>
46#include <linux/dma-mapping.h> 46#include <linux/dma-mapping.h>
47#include <linux/gfp.h>
47 48
48#ifdef CONFIG_SERIAL_8250 49#ifdef CONFIG_SERIAL_8250
49#include <linux/serial_core.h> 50#include <linux/serial_core.h>
@@ -1383,7 +1384,7 @@ static void __devexit ioc3_remove_one (struct pci_dev *pdev)
1383 */ 1384 */
1384} 1385}
1385 1386
1386static struct pci_device_id ioc3_pci_tbl[] = { 1387static DEFINE_PCI_DEVICE_TABLE(ioc3_pci_tbl) = {
1387 { PCI_VENDOR_ID_SGI, PCI_DEVICE_ID_SGI_IOC3, PCI_ANY_ID, PCI_ANY_ID }, 1388 { PCI_VENDOR_ID_SGI, PCI_DEVICE_ID_SGI_IOC3, PCI_ANY_ID, PCI_ANY_ID },
1388 { 0 } 1389 { 0 }
1389}; 1390};
@@ -1664,11 +1665,10 @@ static int ioc3_ioctl(struct net_device *dev, struct ifreq *rq, int cmd)
1664 1665
1665static void ioc3_set_multicast_list(struct net_device *dev) 1666static void ioc3_set_multicast_list(struct net_device *dev)
1666{ 1667{
1667 struct dev_mc_list *dmi = dev->mc_list; 1668 struct dev_mc_list *dmi;
1668 struct ioc3_private *ip = netdev_priv(dev); 1669 struct ioc3_private *ip = netdev_priv(dev);
1669 struct ioc3 *ioc3 = ip->regs; 1670 struct ioc3 *ioc3 = ip->regs;
1670 u64 ehar = 0; 1671 u64 ehar = 0;
1671 int i;
1672 1672
1673 netif_stop_queue(dev); /* Lock out others. */ 1673 netif_stop_queue(dev); /* Lock out others. */
1674 1674
@@ -1681,16 +1681,16 @@ static void ioc3_set_multicast_list(struct net_device *dev)
1681 ioc3_w_emcr(ip->emcr); /* Clear promiscuous. */ 1681 ioc3_w_emcr(ip->emcr); /* Clear promiscuous. */
1682 (void) ioc3_r_emcr(); 1682 (void) ioc3_r_emcr();
1683 1683
1684 if ((dev->flags & IFF_ALLMULTI) || (dev->mc_count > 64)) { 1684 if ((dev->flags & IFF_ALLMULTI) ||
1685 (netdev_mc_count(dev) > 64)) {
1685 /* Too many for hashing to make sense or we want all 1686 /* Too many for hashing to make sense or we want all
1686 multicast packets anyway, so skip computing all the 1687 multicast packets anyway, so skip computing all the
1687 hashes and just accept all packets. */ 1688 hashes and just accept all packets. */
1688 ip->ehar_h = 0xffffffff; 1689 ip->ehar_h = 0xffffffff;
1689 ip->ehar_l = 0xffffffff; 1690 ip->ehar_l = 0xffffffff;
1690 } else { 1691 } else {
1691 for (i = 0; i < dev->mc_count; i++) { 1692 netdev_for_each_mc_addr(dmi, dev) {
1692 char *addr = dmi->dmi_addr; 1693 char *addr = dmi->dmi_addr;
1693 dmi = dmi->next;
1694 1694
1695 if (!(*addr & 1)) 1695 if (!(*addr & 1))
1696 continue; 1696 continue;