Module Name:    src
Committed By:   riastradh
Date:           Sun Jul 29 02:07:46 UTC 2018

Modified Files:
        src/sys/dev/usb: uatp.c

Log Message:
Use usb_rem_task_wait in uatp(4) detach.


To generate a diff of this commit:
cvs rdiff -u -r1.15 -r1.16 src/sys/dev/usb/uatp.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/uatp.c
diff -u src/sys/dev/usb/uatp.c:1.15 src/sys/dev/usb/uatp.c:1.16
--- src/sys/dev/usb/uatp.c:1.15	Sun Dec 10 17:03:07 2017
+++ src/sys/dev/usb/uatp.c	Sun Jul 29 02:07:46 2018
@@ -1,4 +1,4 @@
-/*	$NetBSD: uatp.c,v 1.15 2017/12/10 17:03:07 bouyer Exp $	*/
+/*	$NetBSD: uatp.c,v 1.16 2018/07/29 02:07:46 riastradh Exp $	*/
 
 /*-
  * Copyright (c) 2011-2014 The NetBSD Foundation, Inc.
@@ -146,7 +146,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uatp.c,v 1.15 2017/12/10 17:03:07 bouyer Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uatp.c,v 1.16 2018/07/29 02:07:46 riastradh Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_usb.h"
@@ -1362,7 +1362,8 @@ geyser34_finalize(struct uatp_softc *sc)
 {
 
 	DPRINTF(sc, UATP_DEBUG_MISC, ("finalizing\n"));
-	usb_rem_task(sc->sc_hdev.sc_parent->sc_udev, &sc->sc_reset_task);
+	usb_rem_task_wait(sc->sc_hdev.sc_parent->sc_udev, &sc->sc_reset_task,
+	    USB_TASKQ_DRIVER);
 
 	return 0;
 }

Reply via email to