Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/usb Use usb_rem_task_wait in otus(4) detach.



details:   https://anonhg.NetBSD.org/src/rev/584e172399ed
branches:  trunk
changeset: 365042:584e172399ed
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Sun Jul 29 02:00:59 2018 +0000

description:
Use usb_rem_task_wait in otus(4) detach.

No need for callout_halt: otus_stop already does it.

diffstat:

 sys/dev/usb/if_otus.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 6038618e2ae0 -r 584e172399ed sys/dev/usb/if_otus.c
--- a/sys/dev/usb/if_otus.c     Sun Jul 29 02:00:48 2018 +0000
+++ b/sys/dev/usb/if_otus.c     Sun Jul 29 02:00:59 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_otus.c,v 1.33 2018/06/26 06:48:02 msaitoh Exp $     */
+/*     $NetBSD: if_otus.c,v 1.34 2018/07/29 02:00:59 riastradh Exp $   */
 /*     $OpenBSD: if_otus.c,v 1.18 2010/08/27 17:08:00 jsg Exp $        */
 
 /*-
@@ -23,7 +23,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_otus.c,v 1.33 2018/06/26 06:48:02 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_otus.c,v 1.34 2018/07/29 02:00:59 riastradh Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_usb.h"
@@ -701,7 +701,7 @@
        if (ifp != NULL)        /* Failed to attach properly */
                otus_stop(ifp);
 
-       usb_rem_task(sc->sc_udev, &sc->sc_task);
+       usb_rem_task_wait(sc->sc_udev, &sc->sc_task, USB_TASKQ_DRIVER);
        callout_destroy(&sc->sc_scan_to);
        callout_destroy(&sc->sc_calib_to);
 



Home | Main Index | Thread Index | Old Index