aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ipg.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/ipg.c')
-rw-r--r--drivers/net/ipg.c11
1 files changed, 3 insertions, 8 deletions
diff --git a/drivers/net/ipg.c b/drivers/net/ipg.c
index 639bf9fb0279..72e3d2da9e9f 100644
--- a/drivers/net/ipg.c
+++ b/drivers/net/ipg.c
@@ -570,7 +570,7 @@ static int ipg_config_autoneg(struct net_device *dev)
570static void ipg_nic_set_multicast_list(struct net_device *dev) 570static void ipg_nic_set_multicast_list(struct net_device *dev)
571{ 571{
572 void __iomem *ioaddr = ipg_ioaddr(dev); 572 void __iomem *ioaddr = ipg_ioaddr(dev);
573 struct dev_mc_list *mc_list_ptr; 573 struct netdev_hw_addr *ha;
574 unsigned int hashindex; 574 unsigned int hashindex;
575 u32 hashtable[2]; 575 u32 hashtable[2];
576 u8 receivemode; 576 u8 receivemode;
@@ -609,9 +609,9 @@ static void ipg_nic_set_multicast_list(struct net_device *dev)
609 hashtable[1] = 0x00000000; 609 hashtable[1] = 0x00000000;
610 610
611 /* Cycle through all multicast addresses to filter. */ 611 /* Cycle through all multicast addresses to filter. */
612 netdev_for_each_mc_addr(mc_list_ptr, dev) { 612 netdev_for_each_mc_addr(ha, dev) {
613 /* Calculate CRC result for each multicast address. */ 613 /* Calculate CRC result for each multicast address. */
614 hashindex = crc32_le(0xffffffff, mc_list_ptr->dmi_addr, 614 hashindex = crc32_le(0xffffffff, ha->addr,
615 ETH_ALEN); 615 ETH_ALEN);
616 616
617 /* Use only the least significant 6 bits. */ 617 /* Use only the least significant 6 bits. */
@@ -1548,8 +1548,6 @@ static void ipg_reset_after_host_error(struct work_struct *work)
1548 container_of(work, struct ipg_nic_private, task.work); 1548 container_of(work, struct ipg_nic_private, task.work);
1549 struct net_device *dev = sp->dev; 1549 struct net_device *dev = sp->dev;
1550 1550
1551 IPG_DDEBUG_MSG("DMACtrl = %8.8x\n", ioread32(sp->ioaddr + IPG_DMACTRL));
1552
1553 /* 1551 /*
1554 * Acknowledge HostError interrupt by resetting 1552 * Acknowledge HostError interrupt by resetting
1555 * IPG DMA and HOST. 1553 * IPG DMA and HOST.
@@ -1826,9 +1824,6 @@ static int ipg_nic_stop(struct net_device *dev)
1826 1824
1827 netif_stop_queue(dev); 1825 netif_stop_queue(dev);
1828 1826
1829 IPG_DDEBUG_MSG("RFDlistendCount = %i\n", sp->RFDlistendCount);
1830 IPG_DDEBUG_MSG("RFDListCheckedCount = %i\n", sp->rxdCheckedCount);
1831 IPG_DDEBUG_MSG("EmptyRFDListCount = %i\n", sp->EmptyRFDListCount);
1832 IPG_DUMPTFDLIST(dev); 1827 IPG_DUMPTFDLIST(dev);
1833 1828
1834 do { 1829 do {