summaryrefslogtreecommitdiff
path: root/sys/dev/usb/usbdi.c
diff options
context:
space:
mode:
authorMartin Pieuchot <mpi@cvs.openbsd.org>2013-04-26 14:05:25 +0000
committerMartin Pieuchot <mpi@cvs.openbsd.org>2013-04-26 14:05:25 +0000
commit7a6b14da314b0633c70619ddf9610b1cdad7cba0 (patch)
tree02a63ce45c3d5fe9f1edff2abae7be2fc3c0d9a7 /sys/dev/usb/usbdi.c
parentc510b7bcbffb292d898d642ed97ccd4e6aacb410 (diff)
Give back to usb(4) what is usb(4)'s. In other words use the usb_* prefix
for functions related to the usb(4) driver and keep usbd_* for generic USB layer functions. ok mglocker@
Diffstat (limited to 'sys/dev/usb/usbdi.c')
-rw-r--r--sys/dev/usb/usbdi.c24
1 files changed, 1 insertions, 23 deletions
diff --git a/sys/dev/usb/usbdi.c b/sys/dev/usb/usbdi.c
index 406300c21a5..7fdec250bf9 100644
--- a/sys/dev/usb/usbdi.c
+++ b/sys/dev/usb/usbdi.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: usbdi.c,v 1.53 2013/04/26 13:46:40 mglocker Exp $ */
+/* $OpenBSD: usbdi.c,v 1.54 2013/04/26 14:05:24 mpi Exp $ */
/* $NetBSD: usbdi.c,v 1.103 2002/09/27 15:37:38 provos Exp $ */
/* $FreeBSD: src/sys/dev/usb/usbdi.c,v 1.28 1999/11/17 22:33:49 n_hibma Exp $ */
@@ -37,7 +37,6 @@
#include <sys/kernel.h>
#include <sys/device.h>
#include <sys/malloc.h>
-#include <sys/rwlock.h>
#include <machine/bus.h>
@@ -62,27 +61,6 @@ void usbd_start_next(struct usbd_pipe *pipe);
usbd_status usbd_open_pipe_ival(struct usbd_interface *, u_int8_t, u_int8_t,
struct usbd_pipe **, int);
-int usbd_nbuses = 0;
-
-struct rwlock usbpalock;
-
-void
-usbd_init(void)
-{
- if (usbd_nbuses == 0) {
- rw_init(&usbpalock, "usbpalock");
- usb_begin_tasks();
- }
- usbd_nbuses++;
-}
-
-void
-usbd_finish(void)
-{
- if (--usbd_nbuses == 0)
- usb_end_tasks();
-}
-
int
usbd_is_dying(struct usbd_device *dev)
{