diff options
author | hosokawa <hosokawa@FreeBSD.org> | 1999-07-23 00:12:22 +0000 |
---|---|---|
committer | hosokawa <hosokawa@FreeBSD.org> | 1999-07-23 00:12:22 +0000 |
commit | 563a4c8cb2417cfc19cfd72f2c497b4c00d1a965 (patch) | |
tree | 0d05d0b71cec2734ff1666c057d79b5cd012f6f0 /usr.sbin/pccard/pccardd/cardd.c | |
parent | b7d77d59f2ba9fe4a56e118f28b7995b1da1c2a4 (diff) | |
download | FreeBSD-src-563a4c8cb2417cfc19cfd72f2c497b4c00d1a965.zip FreeBSD-src-563a4c8cb2417cfc19cfd72f2c497b4c00d1a965.tar.gz |
Release IRQ allocated dynamically.
Diffstat (limited to 'usr.sbin/pccard/pccardd/cardd.c')
-rw-r--r-- | usr.sbin/pccard/pccardd/cardd.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.sbin/pccard/pccardd/cardd.c b/usr.sbin/pccard/pccardd/cardd.c index 2e5a529..f1f14c8 100644 --- a/usr.sbin/pccard/pccardd/cardd.c +++ b/usr.sbin/pccard/pccardd/cardd.c @@ -26,7 +26,7 @@ #ifndef lint static const char rcsid[] = - "$Id: cardd.c,v 1.33 1999/01/10 13:00:09 guido Exp $"; + "$Id: cardd.c,v 1.34 1999/02/05 16:00:17 kuriyama Exp $"; #endif /* not lint */ #include <stdio.h> @@ -179,6 +179,9 @@ card_removed(struct slot *sp) sp->config = 0; /* release io */ bit_nset(io_avail, sp->io.addr, sp->io.addr + sp->io.size - 1); + /* release irq */ + if (sp->irq) + pool_irq[sp->irq] = 1; } /* |