summaryrefslogtreecommitdiff
path: root/sys/dev/usb/usbdivar.h
diff options
context:
space:
mode:
authorMartin Pieuchot <mpi@cvs.openbsd.org>2012-05-15 12:48:33 +0000
committerMartin Pieuchot <mpi@cvs.openbsd.org>2012-05-15 12:48:33 +0000
commit582c6b4a7078c360ee8575a8253ad694b9fc88dd (patch)
tree43d69e22c1cb059836540e50305f1da50a80ac93 /sys/dev/usb/usbdivar.h
parentffb8d86ca30164c7e5a3ca85644f6c48487a73c8 (diff)
Don't use a pointer to an opaque softc, we'll need to access its unit
number. No functional change. ok miod@
Diffstat (limited to 'sys/dev/usb/usbdivar.h')
-rw-r--r--sys/dev/usb/usbdivar.h8
1 files changed, 2 insertions, 6 deletions
diff --git a/sys/dev/usb/usbdivar.h b/sys/dev/usb/usbdivar.h
index ca746c7950f..1616ac15b46 100644
--- a/sys/dev/usb/usbdivar.h
+++ b/sys/dev/usb/usbdivar.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: usbdivar.h,v 1.43 2012/01/08 13:12:38 miod Exp $ */
+/* $OpenBSD: usbdivar.h,v 1.44 2012/05/15 12:48:32 mpi Exp $ */
/* $NetBSD: usbdivar.h,v 1.70 2002/07/11 21:14:36 augustss Exp $ */
/* $FreeBSD: src/sys/dev/usb/usbdivar.h,v 1.11 1999/11/17 22:33:51 n_hibma Exp $ */
@@ -91,10 +91,6 @@ struct usbd_hub {
struct usbd_port *ports;
};
-struct usb_softc;
-
-/*****/
-
struct usbd_bus {
/* Filled by HC driver */
struct device bdev; /* base device, host adapter */
@@ -107,7 +103,7 @@ struct usbd_bus {
char dying;
int flags;
#define USB_BUS_CONFIG_PENDING 0x01
- struct usb_softc *usbctl;
+ struct device *usbctl;
struct usb_device_stats stats;
int intr_context;
u_int no_intrs;