diff options
author | davem <davem> | 2002-01-14 10:08:07 +0000 |
---|---|---|
committer | davem <davem> | 2002-01-14 10:08:07 +0000 |
commit | f73f54a767ced40befc69a7047d9821b2d8be939 (patch) | |
tree | 26fa1a280ea2f6cf4620c9cd79c0c76c96cbc604 | |
parent | 285c893e9885d0dc1c873745f75fc47bb6d5490f (diff) | |
download | netdev-vger-cvs-f73f54a767ced40befc69a7047d9821b2d8be939.tar.gz |
Stop the lance before requesting the IRQ.
-rw-r--r-- | drivers/net/sunlance.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/sunlance.c b/drivers/net/sunlance.c index 1dbfaec26..9a69bf36c 100644 --- a/drivers/net/sunlance.c +++ b/drivers/net/sunlance.c @@ -1,4 +1,4 @@ -/* $Id: sunlance.c,v 1.109 2001-10-21 06:35:29 davem Exp $ +/* $Id: sunlance.c,v 1.110 2002-01-14 10:08:07 davem Exp $ * lance.c: Linux/Sparc/Lance driver * * Written 1995, 1996 by Miguel de Icaza @@ -923,14 +923,14 @@ static int lance_open(struct net_device *dev) last_dev = dev; + STOP_LANCE(lp); + if (request_irq(dev->irq, &lance_interrupt, SA_SHIRQ, lancestr, (void *) dev)) { printk(KERN_ERR "Lance: Can't get irq %s\n", __irq_itoa(dev->irq)); return -EAGAIN; } - STOP_LANCE(lp); - /* On the 4m, setup the ledma to provide the upper bits for buffers */ if (lp->dregs) { u32 regval = lp->init_block_dvma & 0xff000000; |