Release the IRQ resource on detach. This fixes repeatedly loading and

unloading the hme(4) module in case it attaches to sbus(4).

MFC after:	1 week
This commit is contained in:
marius 2005-04-05 17:51:56 +00:00
parent 478588ca1b
commit bc92478cf2

View File

@ -308,6 +308,7 @@ hme_sbus_detach(device_t dev)
bus_teardown_intr(dev, hsc->hsc_ires, hsc->hsc_ih);
hme_detach(sc);
bus_release_resource(dev, SYS_RES_IRQ, hsc->hsc_irid, hsc->hsc_ires);
if (hsc->hsc_mif_res != NULL) {
bus_release_resource(dev, SYS_RES_MEMORY, hsc->hsc_mif_rid,
hsc->hsc_mif_res);