PERFORCE change 107559 for review

Hans Petter Selasky hselasky at FreeBSD.org
Mon Oct 9 11:58:42 PDT 2006


http://perforce.freebsd.org/chv.cgi?CH=107559

Change 107559 by hselasky at hselasky_mini_itx on 2006/10/09 18:57:08

	Prototype device methods.

Affected files ...

.. //depot/projects/usb/src/sys/dev/usb/usb.c#8 edit

Differences ...

==== //depot/projects/usb/src/sys/dev/usb/usb.c#8 (text+ko) ====

@@ -106,6 +106,10 @@
 struct mtx usb_global_lock;
 #endif
 
+static device_probe_t usb_probe;
+static device_attach_t usb_attach;
+static device_detach_t usb_detach;
+
 /* these variables are protected by "usb_global_lock" */
 static int usb_nevents = 0;
 static struct selinfo usb_selevent;
@@ -565,7 +569,7 @@
 SYSINIT(usb_post_init, SI_SUB_PSEUDO, SI_ORDER_ANY, usb_post_init, NULL);
 
 static int
-usb_detach(device_t dev, int flags)
+usb_detach(device_t dev)
 {
 	struct usbd_bus *bus = device_get_softc(dev);
 	struct usb_event ue;


More information about the p4-projects mailing list