Release IRQ allocated dynamically.

This commit is contained in:
Tatsumi Hosokawa 1999-07-23 00:12:22 +00:00
parent 202a23238e
commit bff5ef3ac9
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=49006

View File

@ -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;
}
/*