aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/atarilance.c
diff options
context:
space:
mode:
authorAndrea Bastoni <bastoni@cs.unc.edu>2010-05-30 19:16:45 -0400
committerAndrea Bastoni <bastoni@cs.unc.edu>2010-05-30 19:16:45 -0400
commitada47b5fe13d89735805b566185f4885f5a3f750 (patch)
tree644b88f8a71896307d71438e9b3af49126ffb22b /drivers/net/atarilance.c
parent43e98717ad40a4ae64545b5ba047c7b86aa44f4f (diff)
parent3280f21d43ee541f97f8cda5792150d2dbec20d5 (diff)
Merge branch 'wip-2.6.34' into old-private-masterarchived-private-master
Diffstat (limited to 'drivers/net/atarilance.c')
-rw-r--r--drivers/net/atarilance.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/drivers/net/atarilance.c b/drivers/net/atarilance.c
index 0c0deceb6938..a8686bfec7a1 100644
--- a/drivers/net/atarilance.c
+++ b/drivers/net/atarilance.c
@@ -53,7 +53,6 @@ static char version[] = "atarilance.c: v1.3 04/04/96 "
53#include <linux/string.h> 53#include <linux/string.h>
54#include <linux/errno.h> 54#include <linux/errno.h>
55#include <linux/skbuff.h> 55#include <linux/skbuff.h>
56#include <linux/slab.h>
57#include <linux/interrupt.h> 56#include <linux/interrupt.h>
58#include <linux/init.h> 57#include <linux/init.h>
59#include <linux/bitops.h> 58#include <linux/bitops.h>
@@ -663,7 +662,7 @@ static int lance_open( struct net_device *dev )
663 while (--i > 0) 662 while (--i > 0)
664 if (DREG & CSR0_IDON) 663 if (DREG & CSR0_IDON)
665 break; 664 break;
666 if (i < 0 || (DREG & CSR0_ERR)) { 665 if (i <= 0 || (DREG & CSR0_ERR)) {
667 DPRINTK( 2, ( "lance_open(): opening %s failed, i=%d, csr0=%04x\n", 666 DPRINTK( 2, ( "lance_open(): opening %s failed, i=%d, csr0=%04x\n",
668 dev->name, i, DREG )); 667 dev->name, i, DREG ));
669 DREG = CSR0_STOP; 668 DREG = CSR0_STOP;
@@ -930,8 +929,8 @@ static irqreturn_t lance_interrupt( int irq, void *dev_id )
930 } 929 }
931#endif 930#endif
932 931
933 if (lp->tx_full && (netif_queue_stopped(dev)) 932 if (lp->tx_full && (netif_queue_stopped(dev)) &&
934 && dirty_tx > lp->cur_tx - TX_RING_SIZE + 2) { 933 dirty_tx > lp->cur_tx - TX_RING_SIZE + 2) {
935 /* The ring is no longer full, clear tbusy. */ 934 /* The ring is no longer full, clear tbusy. */
936 lp->tx_full = 0; 935 lp->tx_full = 0;
937 netif_wake_queue (dev); 936 netif_wake_queue (dev);
@@ -1097,7 +1096,7 @@ static void set_multicast_list( struct net_device *dev )
1097 REGA( CSR15 ) = 0x8000; /* Set promiscuous mode */ 1096 REGA( CSR15 ) = 0x8000; /* Set promiscuous mode */
1098 } else { 1097 } else {
1099 short multicast_table[4]; 1098 short multicast_table[4];
1100 int num_addrs = dev->mc_count; 1099 int num_addrs = netdev_mc_count(dev);
1101 int i; 1100 int i;
1102 /* We don't use the multicast table, but rely on upper-layer 1101 /* We don't use the multicast table, but rely on upper-layer
1103 * filtering. */ 1102 * filtering. */