From 7a6b14da314b0633c70619ddf9610b1cdad7cba0 Mon Sep 17 00:00:00 2001
From: Martin Pieuchot <mpi@cvs.openbsd.org>
Date: Fri, 26 Apr 2013 14:05:25 +0000
Subject: 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@
---
 sys/dev/usb/usbdi.c | 24 +-----------------------
 1 file changed, 1 insertion(+), 23 deletions(-)

(limited to 'sys/dev/usb/usbdi.c')

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)
 {
-- 
cgit v1.2.3