aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/a2065.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/a2065.c')
-rw-r--r--drivers/net/a2065.c11
1 files changed, 3 insertions, 8 deletions
diff --git a/drivers/net/a2065.c b/drivers/net/a2065.c
index deaa8bc16cf8..25ea98aacf38 100644
--- a/drivers/net/a2065.c
+++ b/drivers/net/a2065.c
@@ -421,16 +421,11 @@ static int lance_tx (struct net_device *dev)
421 421
422static irqreturn_t lance_interrupt (int irq, void *dev_id) 422static irqreturn_t lance_interrupt (int irq, void *dev_id)
423{ 423{
424 struct net_device *dev; 424 struct net_device *dev = dev_id;
425 struct lance_private *lp; 425 struct lance_private *lp = netdev_priv(dev);
426 volatile struct lance_regs *ll; 426 volatile struct lance_regs *ll = lp->ll;
427 int csr0; 427 int csr0;
428 428
429 dev = (struct net_device *) dev_id;
430
431 lp = netdev_priv(dev);
432 ll = lp->ll;
433
434 ll->rap = LE_CSR0; /* LANCE Controller Status */ 429 ll->rap = LE_CSR0; /* LANCE Controller Status */
435 csr0 = ll->rdp; 430 csr0 = ll->rdp;
436 431