aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/smc911x.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/smc911x.c')
-rw-r--r--drivers/net/smc911x.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/drivers/net/smc911x.c b/drivers/net/smc911x.c
index 44ebbaa7457b..ef9674c6713f 100644
--- a/drivers/net/smc911x.c
+++ b/drivers/net/smc911x.c
@@ -1323,7 +1323,7 @@ static void smc911x_set_multicast_list(struct net_device *dev)
1323 * I don't need to zero the multicast table, because the flag is 1323 * I don't need to zero the multicast table, because the flag is
1324 * checked before the table is 1324 * checked before the table is
1325 */ 1325 */
1326 else if (dev->flags & IFF_ALLMULTI || dev->mc_count > 16) { 1326 else if (dev->flags & IFF_ALLMULTI || netdev_mc_count(dev) > 16) {
1327 DBG(SMC_DEBUG_MISC, "%s: RCR_ALMUL\n", dev->name); 1327 DBG(SMC_DEBUG_MISC, "%s: RCR_ALMUL\n", dev->name);
1328 mcr |= MAC_CR_MCPAS_; 1328 mcr |= MAC_CR_MCPAS_;
1329 } 1329 }
@@ -1340,7 +1340,7 @@ static void smc911x_set_multicast_list(struct net_device *dev)
1340 * the number of the 32 bit register, while the low 5 bits are the bit 1340 * the number of the 32 bit register, while the low 5 bits are the bit
1341 * within that register. 1341 * within that register.
1342 */ 1342 */
1343 else if (dev->mc_count) { 1343 else if (!netdev_mc_empty(dev)) {
1344 int i; 1344 int i;
1345 struct dev_mc_list *cur_addr; 1345 struct dev_mc_list *cur_addr;
1346 1346
@@ -1351,7 +1351,7 @@ static void smc911x_set_multicast_list(struct net_device *dev)
1351 memset(multicast_table, 0, sizeof(multicast_table)); 1351 memset(multicast_table, 0, sizeof(multicast_table));
1352 1352
1353 cur_addr = dev->mc_list; 1353 cur_addr = dev->mc_list;
1354 for (i = 0; i < dev->mc_count; i++, cur_addr = cur_addr->next) { 1354 for (i = 0; i < netdev_mc_count(dev); i++, cur_addr = cur_addr->next) {
1355 u32 position; 1355 u32 position;
1356 1356
1357 /* do we have a pointer here? */ 1357 /* do we have a pointer here? */
@@ -2017,10 +2017,8 @@ static int __devinit smc911x_probe(struct net_device *dev)
2017 "set using ifconfig\n", dev->name); 2017 "set using ifconfig\n", dev->name);
2018 } else { 2018 } else {
2019 /* Print the Ethernet address */ 2019 /* Print the Ethernet address */
2020 printk("%s: Ethernet addr: ", dev->name); 2020 printk("%s: Ethernet addr: %pM\n",
2021 for (i = 0; i < 5; i++) 2021 dev->name, dev->dev_addr);
2022 printk("%2.2x:", dev->dev_addr[i]);
2023 printk("%2.2x\n", dev->dev_addr[5]);
2024 } 2022 }
2025 2023
2026 if (lp->phy_type == 0) { 2024 if (lp->phy_type == 0) {