diff options
Diffstat (limited to 'drivers/net/bmac.c')
-rw-r--r-- | drivers/net/bmac.c | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/drivers/net/bmac.c b/drivers/net/bmac.c index 598b007f1991..39250b2ca886 100644 --- a/drivers/net/bmac.c +++ b/drivers/net/bmac.c | |||
@@ -167,7 +167,6 @@ static inline void | |||
167 | dbdma_st32(volatile __u32 __iomem *a, unsigned long x) | 167 | dbdma_st32(volatile __u32 __iomem *a, unsigned long x) |
168 | { | 168 | { |
169 | __asm__ volatile( "stwbrx %0,0,%1" : : "r" (x), "r" (a) : "memory"); | 169 | __asm__ volatile( "stwbrx %0,0,%1" : : "r" (x), "r" (a) : "memory"); |
170 | return; | ||
171 | } | 170 | } |
172 | 171 | ||
173 | static inline unsigned long | 172 | static inline unsigned long |
@@ -382,8 +381,6 @@ bmac_init_registers(struct net_device *dev) | |||
382 | bmwrite(dev, RXCFG, RxCRCNoStrip | RxHashFilterEnable | RxRejectOwnPackets); | 381 | bmwrite(dev, RXCFG, RxCRCNoStrip | RxHashFilterEnable | RxRejectOwnPackets); |
383 | 382 | ||
384 | bmwrite(dev, INTDISABLE, EnableNormal); | 383 | bmwrite(dev, INTDISABLE, EnableNormal); |
385 | |||
386 | return; | ||
387 | } | 384 | } |
388 | 385 | ||
389 | #if 0 | 386 | #if 0 |
@@ -972,7 +969,7 @@ bmac_remove_multi(struct net_device *dev, | |||
972 | */ | 969 | */ |
973 | static void bmac_set_multicast(struct net_device *dev) | 970 | static void bmac_set_multicast(struct net_device *dev) |
974 | { | 971 | { |
975 | struct dev_mc_list *dmi; | 972 | struct netdev_hw_addr *ha; |
976 | struct bmac_data *bp = netdev_priv(dev); | 973 | struct bmac_data *bp = netdev_priv(dev); |
977 | int num_addrs = netdev_mc_count(dev); | 974 | int num_addrs = netdev_mc_count(dev); |
978 | unsigned short rx_cfg; | 975 | unsigned short rx_cfg; |
@@ -1001,8 +998,8 @@ static void bmac_set_multicast(struct net_device *dev) | |||
1001 | rx_cfg = bmac_rx_on(dev, 0, 0); | 998 | rx_cfg = bmac_rx_on(dev, 0, 0); |
1002 | XXDEBUG(("bmac: multi disabled, rx_cfg=%#08x\n", rx_cfg)); | 999 | XXDEBUG(("bmac: multi disabled, rx_cfg=%#08x\n", rx_cfg)); |
1003 | } else { | 1000 | } else { |
1004 | netdev_for_each_mc_addr(dmi, dev) | 1001 | netdev_for_each_mc_addr(ha, dev) |
1005 | bmac_addhash(bp, dmi->dmi_addr); | 1002 | bmac_addhash(bp, ha->addr); |
1006 | bmac_update_hash_table_mask(dev, bp); | 1003 | bmac_update_hash_table_mask(dev, bp); |
1007 | rx_cfg = bmac_rx_on(dev, 1, 0); | 1004 | rx_cfg = bmac_rx_on(dev, 1, 0); |
1008 | XXDEBUG(("bmac: multi enabled, rx_cfg=%#08x\n", rx_cfg)); | 1005 | XXDEBUG(("bmac: multi enabled, rx_cfg=%#08x\n", rx_cfg)); |
@@ -1016,7 +1013,7 @@ static void bmac_set_multicast(struct net_device *dev) | |||
1016 | 1013 | ||
1017 | static void bmac_set_multicast(struct net_device *dev) | 1014 | static void bmac_set_multicast(struct net_device *dev) |
1018 | { | 1015 | { |
1019 | struct dev_mc_list *dmi; | 1016 | struct netdev_hw_addr *ha; |
1020 | char *addrs; | 1017 | char *addrs; |
1021 | int i; | 1018 | int i; |
1022 | unsigned short rx_cfg; | 1019 | unsigned short rx_cfg; |
@@ -1040,8 +1037,8 @@ static void bmac_set_multicast(struct net_device *dev) | |||
1040 | 1037 | ||
1041 | for(i = 0; i < 4; i++) hash_table[i] = 0; | 1038 | for(i = 0; i < 4; i++) hash_table[i] = 0; |
1042 | 1039 | ||
1043 | netdev_for_each_mc_addr(dmi, dev) { | 1040 | netdev_for_each_mc_addr(ha, dev) { |
1044 | addrs = dmi->dmi_addr; | 1041 | addrs = ha->addr; |
1045 | 1042 | ||
1046 | if(!(*addrs & 1)) | 1043 | if(!(*addrs & 1)) |
1047 | continue; | 1044 | continue; |