diff options
author | Komuro <komurojun-mbn@nifty.com> | 2008-06-07 21:37:56 +0900 |
---|---|---|
committer | Jeff Garzik <jgarzik@redhat.com> | 2008-06-27 01:28:21 -0400 |
commit | 54299ef7e9ae4b5d47b02f3abea168cdc62a6f70 (patch) | |
tree | 8f271804bf406e6ebc2eda0249068232170006d1 /drivers/net/pcmcia/axnet_cs.c | |
parent | 52cc30862a8f90c98be8eb527d00e5e06d398b22 (diff) | |
download | linux-stable-54299ef7e9ae4b5d47b02f3abea168cdc62a6f70.tar.gz linux-stable-54299ef7e9ae4b5d47b02f3abea168cdc62a6f70.tar.bz2 linux-stable-54299ef7e9ae4b5d47b02f3abea168cdc62a6f70.zip |
pcnet_cs, axnet_cs: clear bogus interrupt before request_irq
Signed-off-by: Komuro <komurojun-mbn@nifty.com>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
Diffstat (limited to 'drivers/net/pcmcia/axnet_cs.c')
-rw-r--r-- | drivers/net/pcmcia/axnet_cs.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/pcmcia/axnet_cs.c b/drivers/net/pcmcia/axnet_cs.c index ce95c5d168fe..70d012e90dcf 100644 --- a/drivers/net/pcmcia/axnet_cs.c +++ b/drivers/net/pcmcia/axnet_cs.c @@ -525,12 +525,14 @@ static int axnet_open(struct net_device *dev) int ret; axnet_dev_t *info = PRIV(dev); struct pcmcia_device *link = info->p_dev; + unsigned int nic_base = dev->base_addr; DEBUG(2, "axnet_open('%s')\n", dev->name); if (!pcmcia_dev_present(link)) return -ENODEV; + outb_p(0xFF, nic_base + EN0_ISR); /* Clear bogus intr. */ ret = request_irq(dev->irq, ei_irq_wrapper, IRQF_SHARED, "axnet_cs", dev); if (ret) return ret; |