diff options
author | imp <imp@FreeBSD.org> | 2006-06-03 21:05:36 +0000 |
---|---|---|
committer | imp <imp@FreeBSD.org> | 2006-06-03 21:05:36 +0000 |
commit | e914efa181b7c8d3d1e9500d27b0fc30b70514fa (patch) | |
tree | fb2badae61aa7e7746e19817b47709eb92bccc6b /sys/dev/pccbb | |
parent | dc064c4d4890430cb8208a63baeaff2559197afd (diff) | |
download | FreeBSD-src-e914efa181b7c8d3d1e9500d27b0fc30b70514fa.zip FreeBSD-src-e914efa181b7c8d3d1e9500d27b0fc30b70514fa.tar.gz |
Since we turn off the interrupts, we don't need to disestablish
our ISR.
Diffstat (limited to 'sys/dev/pccbb')
-rw-r--r-- | sys/dev/pccbb/pccbb.c | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/sys/dev/pccbb/pccbb.c b/sys/dev/pccbb/pccbb.c index b1082ad..3451b12 100644 --- a/sys/dev/pccbb/pccbb.c +++ b/sys/dev/pccbb/pccbb.c @@ -1442,7 +1442,6 @@ cbb_suspend(device_t self) if (error != 0) return (error); cbb_set(sc, CBB_SOCKET_MASK, 0); /* Quiet hardware */ - bus_teardown_intr(self, sc->irq_res, sc->intrhand); sc->flags &= ~CBB_CARD_OK; /* Card is bogus now */ return (0); } @@ -1473,18 +1472,6 @@ cbb_resume(device_t self) tmp = cbb_get(sc, CBB_SOCKET_EVENT); cbb_set(sc, CBB_SOCKET_EVENT, tmp); - /* re-establish the interrupt. */ - if (bus_setup_intr(self, sc->irq_res, INTR_TYPE_AV | INTR_MPSAFE, - cbb_intr, sc, &sc->intrhand)) { - device_printf(self, "couldn't re-establish interrupt"); - bus_release_resource(self, SYS_RES_IRQ, 0, sc->irq_res); - bus_release_resource(self, SYS_RES_MEMORY, CBBR_SOCKBASE, - sc->base_res); - sc->irq_res = NULL; - sc->base_res = NULL; - return (ENOMEM); - } - /* CSC Interrupt: Card detect interrupt on */ cbb_setb(sc, CBB_SOCKET_MASK, CBB_SOCKET_MASK_CD); |