Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/usb Simplify



details:   https://anonhg.NetBSD.org/src/rev/c84cb3179347
branches:  trunk
changeset: 325011:c84cb3179347
user:      skrll <skrll%NetBSD.org@localhost>
date:      Sat Nov 30 12:16:14 2013 +0000

description:
Simplify

diffstat:

 sys/dev/usb/usbdi.c |  7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)

diffs (28 lines):

diff -r 6648d138dc76 -r c84cb3179347 sys/dev/usb/usbdi.c
--- a/sys/dev/usb/usbdi.c       Sat Nov 30 08:27:17 2013 +0000
+++ b/sys/dev/usb/usbdi.c       Sat Nov 30 12:16:14 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: usbdi.c,v 1.159 2013/10/04 12:47:04 skrll Exp $        */
+/*     $NetBSD: usbdi.c,v 1.160 2013/11/30 12:16:14 skrll Exp $        */
 
 /*
  * Copyright (c) 1998, 2012 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: usbdi.c,v 1.159 2013/10/04 12:47:04 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: usbdi.c,v 1.160 2013/11/30 12:16:14 skrll Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_compat_netbsd.h"
@@ -399,8 +399,7 @@
        if (xfer == NULL)
                return (NULL);
        xfer->device = dev;
-       callout_init(&xfer->timeout_handle,
-           dev->bus->methods->get_lock ? CALLOUT_MPSAFE : 0);
+       callout_init(&xfer->timeout_handle, CALLOUT_MPSAFE);
        cv_init(&xfer->cv, "usbxfer");
        cv_init(&xfer->hccv, "usbhcxfer");
        DPRINTFN(5,("usbd_alloc_xfer() = %p\n", xfer));



Home | Main Index | Thread Index | Old Index