summaryrefslogtreecommitdiffstats
path: root/sys/dev/hme
diff options
context:
space:
mode:
authormarius <marius@FreeBSD.org>2005-04-05 17:51:56 +0000
committermarius <marius@FreeBSD.org>2005-04-05 17:51:56 +0000
commitbc92478cf216a4e0d4399464f3927c1c709b4dc1 (patch)
treefddebc67fd0262f809477f6e2dd13439e0fbb1f5 /sys/dev/hme
parent478588ca1b52b3a312fed28f8b3175631d592dbd (diff)
downloadFreeBSD-src-bc92478cf216a4e0d4399464f3927c1c709b4dc1.zip
FreeBSD-src-bc92478cf216a4e0d4399464f3927c1c709b4dc1.tar.gz
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
Diffstat (limited to 'sys/dev/hme')
-rw-r--r--sys/dev/hme/if_hme_sbus.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/dev/hme/if_hme_sbus.c b/sys/dev/hme/if_hme_sbus.c
index d2934f4..ff3bfe7 100644
--- a/sys/dev/hme/if_hme_sbus.c
+++ b/sys/dev/hme/if_hme_sbus.c
@@ -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);
OpenPOWER on IntegriCloud