aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ni52.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/ni52.c')
-rw-r--r--drivers/net/ni52.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/ni52.c b/drivers/net/ni52.c
index f7a8f707361e..b7837ebd9a7d 100644
--- a/drivers/net/ni52.c
+++ b/drivers/net/ni52.c
@@ -595,7 +595,7 @@ static int init586(struct net_device *dev)
595 struct iasetup_cmd_struct __iomem *ias_cmd; 595 struct iasetup_cmd_struct __iomem *ias_cmd;
596 struct tdr_cmd_struct __iomem *tdr_cmd; 596 struct tdr_cmd_struct __iomem *tdr_cmd;
597 struct mcsetup_cmd_struct __iomem *mc_cmd; 597 struct mcsetup_cmd_struct __iomem *mc_cmd;
598 struct dev_mc_list *dmi; 598 struct netdev_hw_addr *ha;
599 int num_addrs = netdev_mc_count(dev); 599 int num_addrs = netdev_mc_count(dev);
600 600
601 ptr = p->scb + 1; 601 ptr = p->scb + 1;
@@ -724,8 +724,8 @@ static int init586(struct net_device *dev)
724 writew(num_addrs * 6, &mc_cmd->mc_cnt); 724 writew(num_addrs * 6, &mc_cmd->mc_cnt);
725 725
726 i = 0; 726 i = 0;
727 netdev_for_each_mc_addr(dmi, dev) 727 netdev_for_each_mc_addr(ha, dev)
728 memcpy_toio(mc_cmd->mc_list[i++], dmi->dmi_addr, 6); 728 memcpy_toio(mc_cmd->mc_list[i++], ha->addr, 6);
729 729
730 writew(make16(mc_cmd), &p->scb->cbl_offset); 730 writew(make16(mc_cmd), &p->scb->cbl_offset);
731 writeb(CUC_START, &p->scb->cmd_cuc); 731 writeb(CUC_START, &p->scb->cmd_cuc);