diff options
Diffstat (limited to 'drivers/net/ni52.c')
| -rw-r--r-- | drivers/net/ni52.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/net/ni52.c b/drivers/net/ni52.c index 05c29c2cef2a..b7837ebd9a7d 100644 --- a/drivers/net/ni52.c +++ b/drivers/net/ni52.c | |||
| @@ -109,7 +109,6 @@ static int fifo = 0x8; /* don't change */ | |||
| 109 | #include <linux/string.h> | 109 | #include <linux/string.h> |
| 110 | #include <linux/errno.h> | 110 | #include <linux/errno.h> |
| 111 | #include <linux/ioport.h> | 111 | #include <linux/ioport.h> |
| 112 | #include <linux/slab.h> | ||
| 113 | #include <linux/interrupt.h> | 112 | #include <linux/interrupt.h> |
| 114 | #include <linux/delay.h> | 113 | #include <linux/delay.h> |
| 115 | #include <linux/init.h> | 114 | #include <linux/init.h> |
| @@ -596,7 +595,7 @@ static int init586(struct net_device *dev) | |||
| 596 | struct iasetup_cmd_struct __iomem *ias_cmd; | 595 | struct iasetup_cmd_struct __iomem *ias_cmd; |
| 597 | struct tdr_cmd_struct __iomem *tdr_cmd; | 596 | struct tdr_cmd_struct __iomem *tdr_cmd; |
| 598 | struct mcsetup_cmd_struct __iomem *mc_cmd; | 597 | struct mcsetup_cmd_struct __iomem *mc_cmd; |
| 599 | struct dev_mc_list *dmi; | 598 | struct netdev_hw_addr *ha; |
| 600 | int num_addrs = netdev_mc_count(dev); | 599 | int num_addrs = netdev_mc_count(dev); |
| 601 | 600 | ||
| 602 | ptr = p->scb + 1; | 601 | ptr = p->scb + 1; |
| @@ -725,8 +724,8 @@ static int init586(struct net_device *dev) | |||
| 725 | writew(num_addrs * 6, &mc_cmd->mc_cnt); | 724 | writew(num_addrs * 6, &mc_cmd->mc_cnt); |
| 726 | 725 | ||
| 727 | i = 0; | 726 | i = 0; |
| 728 | netdev_for_each_mc_addr(dmi, dev) | 727 | netdev_for_each_mc_addr(ha, dev) |
| 729 | memcpy_toio(mc_cmd->mc_list[i++], dmi->dmi_addr, 6); | 728 | memcpy_toio(mc_cmd->mc_list[i++], ha->addr, 6); |
| 730 | 729 | ||
| 731 | writew(make16(mc_cmd), &p->scb->cbl_offset); | 730 | writew(make16(mc_cmd), &p->scb->cbl_offset); |
| 732 | writeb(CUC_START, &p->scb->cmd_cuc); | 731 | writeb(CUC_START, &p->scb->cmd_cuc); |
