diff options
Diffstat (limited to 'drivers/net/smc91x.c')
| -rw-r--r-- | drivers/net/smc91x.c | 11 | 
1 files changed, 5 insertions, 6 deletions
diff --git a/drivers/net/smc91x.c b/drivers/net/smc91x.c index fc1b5a1a358..682bc4fe604 100644 --- a/drivers/net/smc91x.c +++ b/drivers/net/smc91x.c @@ -70,7 +70,6 @@ static const char version[] =  #include <linux/module.h>  #include <linux/kernel.h>  #include <linux/sched.h> -#include <linux/slab.h>  #include <linux/delay.h>  #include <linux/interrupt.h>  #include <linux/errno.h> @@ -1286,7 +1285,7 @@ static irqreturn_t smc_interrupt(int irq, void *dev_id)  			smc_phy_interrupt(dev);  		} else if (status & IM_ERCV_INT) {  			SMC_ACK_INT(lp, IM_ERCV_INT); -			PRINTK("%s: UNSUPPORTED: ERCV INTERRUPT \n", dev->name); +			PRINTK("%s: UNSUPPORTED: ERCV INTERRUPT\n", dev->name);  		}  	} while (--timeout); @@ -1413,7 +1412,7 @@ static void smc_set_multicast_list(struct net_device *dev)  	 * within that register.  	 */  	else if (!netdev_mc_empty(dev)) { -		struct dev_mc_list *cur_addr; +		struct netdev_hw_addr *ha;  		/* table for flipping the order of 3 bits */  		static const unsigned char invert3[] = {0, 4, 2, 6, 1, 5, 3, 7}; @@ -1421,16 +1420,16 @@ static void smc_set_multicast_list(struct net_device *dev)  		/* start with a table of all zeros: reject all */  		memset(multicast_table, 0, sizeof(multicast_table)); -		netdev_for_each_mc_addr(cur_addr, dev) { +		netdev_for_each_mc_addr(ha, dev) {  			int position;  			/* make sure this is a multicast address -  		   	   shouldn't this be a given if we have it here ? */ -			if (!(*cur_addr->dmi_addr & 1)) +			if (!(*ha->addr & 1))  				continue;  			/* only use the low order bits */ -			position = crc32_le(~0, cur_addr->dmi_addr, 6) & 0x3f; +			position = crc32_le(~0, ha->addr, 6) & 0x3f;  			/* do some messy swapping to put the bit in the right spot */  			multicast_table[invert3[position&7]] |=  |