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.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/drivers/net/ipg.c b/drivers/net/ipg.c
index 150415e83f61..72e3d2da9e9f 100644
--- a/drivers/net/ipg.c
+++ b/drivers/net/ipg.c
@@ -22,6 +22,7 @@
22 */ 22 */
23#include <linux/crc32.h> 23#include <linux/crc32.h>
24#include <linux/ethtool.h> 24#include <linux/ethtool.h>
25#include <linux/gfp.h>
25#include <linux/mii.h> 26#include <linux/mii.h>
26#include <linux/mutex.h> 27#include <linux/mutex.h>
27 28
@@ -569,7 +570,7 @@ static int ipg_config_autoneg(struct net_device *dev)
569static void ipg_nic_set_multicast_list(struct net_device *dev) 570static void ipg_nic_set_multicast_list(struct net_device *dev)
570{ 571{
571 void __iomem *ioaddr = ipg_ioaddr(dev); 572 void __iomem *ioaddr = ipg_ioaddr(dev);
572 struct dev_mc_list *mc_list_ptr; 573 struct netdev_hw_addr *ha;
573 unsigned int hashindex; 574 unsigned int hashindex;
574 u32 hashtable[2]; 575 u32 hashtable[2];
575 u8 receivemode; 576 u8 receivemode;
@@ -608,9 +609,9 @@ static void ipg_nic_set_multicast_list(struct net_device *dev)
608 hashtable[1] = 0x00000000; 609 hashtable[1] = 0x00000000;
609 610
610 /* Cycle through all multicast addresses to filter. */ 611 /* Cycle through all multicast addresses to filter. */
611 netdev_for_each_mc_addr(mc_list_ptr, dev) { 612 netdev_for_each_mc_addr(ha, dev) {
612 /* Calculate CRC result for each multicast address. */ 613 /* Calculate CRC result for each multicast address. */
613 hashindex = crc32_le(0xffffffff, mc_list_ptr->dmi_addr, 614 hashindex = crc32_le(0xffffffff, ha->addr,
614 ETH_ALEN); 615 ETH_ALEN);
615 616
616 /* Use only the least significant 6 bits. */ 617 /* Use only the least significant 6 bits. */
@@ -1547,8 +1548,6 @@ static void ipg_reset_after_host_error(struct work_struct *work)
1547 container_of(work, struct ipg_nic_private, task.work); 1548 container_of(work, struct ipg_nic_private, task.work);
1548 struct net_device *dev = sp->dev; 1549 struct net_device *dev = sp->dev;
1549 1550
1550 IPG_DDEBUG_MSG("DMACtrl = %8.8x\n", ioread32(sp->ioaddr + IPG_DMACTRL));
1551
1552 /* 1551 /*
1553 * Acknowledge HostError interrupt by resetting 1552 * Acknowledge HostError interrupt by resetting
1554 * IPG DMA and HOST. 1553 * IPG DMA and HOST.
@@ -1825,9 +1824,6 @@ static int ipg_nic_stop(struct net_device *dev)
1825 1824
1826 netif_stop_queue(dev); 1825 netif_stop_queue(dev);
1827 1826
1828 IPG_DDEBUG_MSG("RFDlistendCount = %i\n", sp->RFDlistendCount);
1829 IPG_DDEBUG_MSG("RFDListCheckedCount = %i\n", sp->rxdCheckedCount);
1830 IPG_DDEBUG_MSG("EmptyRFDListCount = %i\n", sp->EmptyRFDListCount);
1831 IPG_DUMPTFDLIST(dev); 1827 IPG_DUMPTFDLIST(dev);
1832 1828
1833 do { 1829 do {