diff options
| author | mlelstv <mlelstv@NetBSD.org> | 2019-12-01 21:02:09 +0000 |
|---|---|---|
| committer | mlelstv <mlelstv@NetBSD.org> | 2019-12-01 21:02:09 +0000 |
| commit | 3629ef00738b46337b0f5cd03fa037414594667e (patch) | |
| tree | 2a2194b2f632c0b783df19e64cb65cb33e6b92a4 /sys/dev | |
| parent | 48149b0ac9eb9654dcdcca8bf3c0357fb529cc5d (diff) | |
Don't deregister twice with pmf.
Diffstat (limited to 'sys/dev')
| -rw-r--r-- | sys/dev/usb/if_urtwn.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sys/dev/usb/if_urtwn.c b/sys/dev/usb/if_urtwn.c index 5a612de9c46..d27a4505ebd 100644 --- a/sys/dev/usb/if_urtwn.c +++ b/sys/dev/usb/if_urtwn.c @@ -1,4 +1,4 @@ -/* $NetBSD: if_urtwn.c,v 1.76 2019/12/01 21:01:19 mlelstv Exp $ */ +/* $NetBSD: if_urtwn.c,v 1.77 2019/12/01 21:02:09 mlelstv Exp $ */ /* $OpenBSD: if_urtwn.c,v 1.42 2015/02/10 23:25:46 mpi Exp $ */ /*- @@ -25,7 +25,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: if_urtwn.c,v 1.76 2019/12/01 21:01:19 mlelstv Exp $"); +__KERNEL_RCSID(0, "$NetBSD: if_urtwn.c,v 1.77 2019/12/01 21:02:09 mlelstv Exp $"); #ifdef _KERNEL_OPT #include "opt_inet.h" @@ -568,8 +568,6 @@ urtwn_detach(device_t self, int flags) callout_halt(&sc->sc_scan_to, NULL); callout_halt(&sc->sc_calib_to, NULL); - pmf_device_deregister(self); - if (ISSET(sc->sc_flags, URTWN_FLAG_ATTACHED)) { urtwn_stop(ifp, 0); usb_rem_task_wait(sc->sc_udev, &sc->sc_task, USB_TASKQ_DRIVER, |
