[PATCH] 3c574_cs: disable interrupts in el3_close
authorDaniel Ritz <daniel.ritz@gmx.ch>
Sun, 10 Apr 2005 18:27:45 +0000 (20:27 +0200)
committerJeff Garzik <jgarzik@pobox.com>
Sat, 28 May 2005 02:16:39 +0000 (22:16 -0400)
3c574_cs forgets to disable interrupts during el3_close().
fix it by doing what 3c59x does.

Signed-off-by: Daniel Ritz <daniel.ritz@gmx.ch>
drivers/net/pcmcia/3c574_cs.c

index 41e517114807052707dad7bace8529f7080ba25a..c6e8b25f968529837ec3987baac52e7f55d73dea 100644 (file)
@@ -1274,6 +1274,9 @@ static int el3_close(struct net_device *dev)
                spin_lock_irqsave(&lp->window_lock, flags);
                update_stats(dev);
                spin_unlock_irqrestore(&lp->window_lock, flags);
+
+               /* force interrupts off */
+               outw(SetIntrEnb | 0x0000, ioaddr + EL3_CMD);
        }
 
        link->open--;