Module Name: src
Committed By: mlelstv
Date: Sun Dec 1 21:02:09 UTC 2019
Modified Files:
src/sys/dev/usb: if_urtwn.c
Log Message:
Don't deregister twice with pmf.
To generate a diff of this commit:
cvs rdiff -u -r1.76 -r1.77 src/sys/dev/usb/if_urtwn.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/dev/usb/if_urtwn.c
diff -u src/sys/dev/usb/if_urtwn.c:1.76 src/sys/dev/usb/if_urtwn.c:1.77
--- src/sys/dev/usb/if_urtwn.c:1.76 Sun Dec 1 21:01:19 2019
+++ src/sys/dev/usb/if_urtwn.c Sun Dec 1 21:02:09 2019
@@ -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,