diff options
| author | skrll <skrll@NetBSD.org> | 2013-11-30 12:16:14 +0000 |
|---|---|---|
| committer | skrll <skrll@NetBSD.org> | 2013-11-30 12:16:14 +0000 |
| commit | 6ec54292dfcae77286facd40ca6f1d7f4ea55a3a (patch) | |
| tree | 5a131ff7fcfe1abf9df47a61c96f01895a870020 /sys/dev | |
| parent | 795717af01267fa2a88a208868181dc586dce8de (diff) | |
Simplify
Diffstat (limited to 'sys/dev')
| -rw-r--r-- | sys/dev/usb/usbdi.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/sys/dev/usb/usbdi.c b/sys/dev/usb/usbdi.c index 7710fd3890c..c1d3522d47e 100644 --- a/sys/dev/usb/usbdi.c +++ b/sys/dev/usb/usbdi.c @@ -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 @@ usbd_alloc_xfer(usbd_device_handle dev) 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)); |
