aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/sunhme.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/sunhme.c')
-rw-r--r--drivers/net/sunhme.c15
1 files changed, 6 insertions, 9 deletions
diff --git a/drivers/net/sunhme.c b/drivers/net/sunhme.c
index b17dbb11bd67..377c0b51e559 100644
--- a/drivers/net/sunhme.c
+++ b/drivers/net/sunhme.c
@@ -1523,13 +1523,13 @@ static int happy_meal_init(struct happy_meal *hp)
1523 hme_write32(hp, bregs + BMAC_HTABLE3, 0xffff); 1523 hme_write32(hp, bregs + BMAC_HTABLE3, 0xffff);
1524 } else if ((hp->dev->flags & IFF_PROMISC) == 0) { 1524 } else if ((hp->dev->flags & IFF_PROMISC) == 0) {
1525 u16 hash_table[4]; 1525 u16 hash_table[4];
1526 struct dev_mc_list *dmi; 1526 struct netdev_hw_addr *ha;
1527 char *addrs; 1527 char *addrs;
1528 u32 crc; 1528 u32 crc;
1529 1529
1530 memset(hash_table, 0, sizeof(hash_table)); 1530 memset(hash_table, 0, sizeof(hash_table));
1531 netdev_for_each_mc_addr(dmi, hp->dev) { 1531 netdev_for_each_mc_addr(ha, hp->dev) {
1532 addrs = dmi->dmi_addr; 1532 addrs = ha->addr;
1533 1533
1534 if (!(*addrs & 1)) 1534 if (!(*addrs & 1))
1535 continue; 1535 continue;
@@ -2341,8 +2341,6 @@ static netdev_tx_t happy_meal_start_xmit(struct sk_buff *skb,
2341 2341
2342 spin_unlock_irq(&hp->happy_lock); 2342 spin_unlock_irq(&hp->happy_lock);
2343 2343
2344 dev->trans_start = jiffies;
2345
2346 tx_add_log(hp, TXLOG_ACTION_TXMIT, 0); 2344 tx_add_log(hp, TXLOG_ACTION_TXMIT, 0);
2347 return NETDEV_TX_OK; 2345 return NETDEV_TX_OK;
2348} 2346}
@@ -2362,7 +2360,7 @@ static void happy_meal_set_multicast(struct net_device *dev)
2362{ 2360{
2363 struct happy_meal *hp = netdev_priv(dev); 2361 struct happy_meal *hp = netdev_priv(dev);
2364 void __iomem *bregs = hp->bigmacregs; 2362 void __iomem *bregs = hp->bigmacregs;
2365 struct dev_mc_list *dmi; 2363 struct netdev_hw_addr *ha;
2366 char *addrs; 2364 char *addrs;
2367 u32 crc; 2365 u32 crc;
2368 2366
@@ -2380,8 +2378,8 @@ static void happy_meal_set_multicast(struct net_device *dev)
2380 u16 hash_table[4]; 2378 u16 hash_table[4];
2381 2379
2382 memset(hash_table, 0, sizeof(hash_table)); 2380 memset(hash_table, 0, sizeof(hash_table));
2383 netdev_for_each_mc_addr(dmi, dev) { 2381 netdev_for_each_mc_addr(ha, dev) {
2384 addrs = dmi->dmi_addr; 2382 addrs = ha->addr;
2385 2383
2386 if (!(*addrs & 1)) 2384 if (!(*addrs & 1))
2387 continue; 2385 continue;
@@ -3004,7 +3002,6 @@ static int __devinit happy_meal_pci_probe(struct pci_dev *pdev,
3004 dev->base_addr = (long) pdev; 3002 dev->base_addr = (long) pdev;
3005 3003
3006 hp = netdev_priv(dev); 3004 hp = netdev_priv(dev);
3007 memset(hp, 0, sizeof(*hp));
3008 3005
3009 hp->happy_dev = pdev; 3006 hp->happy_dev = pdev;
3010 hp->dma_dev = &pdev->dev; 3007 hp->dma_dev = &pdev->dev;