diff options
author | jhb <jhb@FreeBSD.org> | 2005-10-26 15:52:16 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2005-10-26 15:52:16 +0000 |
commit | 10b2717ca72969a164f57468f028ba0da6c18251 (patch) | |
tree | 4f366617633d12819337044049ec8e46b640bfd4 /sys/dev/rc | |
parent | df1acf8cfc8911c31b6c04a64625126f87e60316 (diff) | |
download | FreeBSD-src-10b2717ca72969a164f57468f028ba0da6c18251.zip FreeBSD-src-10b2717ca72969a164f57468f028ba0da6c18251.tar.gz |
- Use swi_remove() to teardown swi handlers rather than
intr_event_remove_handler().
- Remove tty: prefix from a couple of swi handler names.
Diffstat (limited to 'sys/dev/rc')
-rw-r--r-- | sys/dev/rc/rc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/rc/rc.c b/sys/dev/rc/rc.c index 76b8cc8..1da5067 100644 --- a/sys/dev/rc/rc.c +++ b/sys/dev/rc/rc.c @@ -311,7 +311,7 @@ rc_attach(device_t dev) goto fail; } - swi_add(&tty_intr_event, "tty:rc", rc_pollcard, sc, SWI_TTY, 0, + swi_add(&tty_intr_event, "rc", rc_pollcard, sc, SWI_TTY, 0, &sc->sc_swicookie); return (0); @@ -336,7 +336,7 @@ rc_detach(device_t dev) error = bus_teardown_intr(dev, sc->sc_irq, sc->sc_hwicookie); if (error) device_printf(dev, "failed to deregister interrupt handler\n"); - intr_event_remove_handler(sc->sc_swicookie); + swi_remove(sc->sc_swicookie); rc_release_resources(dev); return (0); |