PERFORCE change 132093 for review
Hans Petter Selasky
hselasky at FreeBSD.org
Sun Dec 30 05:27:51 PST 2007
http://perforce.freebsd.org/chv.cgi?CH=132093
Change 132093 by hselasky at hselasky_laptop001 on 2007/12/30 13:27:44
Get device methods right.
Affected files ...
.. //depot/projects/usb/src/sys/dev/usb/uchcom.c#3 edit
Differences ...
==== //depot/projects/usb/src/sys/dev/usb/uchcom.c#3 (text+ko) ====
@@ -222,9 +222,9 @@
struct uchcom_endpoints *);
static void uchcom_close_intr_pipe(struct uchcom_softc *);
-static int uchcom_match(device_t );
-static int uchcom_attach(device_t );
-static int uchcom_detach(device_t );
+static device_probe_t uchcom_probe;
+static device_attach_t uchcom_attach;
+static device_detach_t uchcom_detach;
struct ucom_callback uchcom_callback = {
.ucom_get_status = uchcom_get_status,
@@ -244,7 +244,7 @@
* driver entry points
*/
-static int uchcom_match(device_t self)
+static int uchcom_probe(device_t self)
{
struct usb_attach_arg *uaa = device_get_ivars(self);
@@ -1018,7 +1018,7 @@
static device_method_t uchcom_methods[] = {
/* Device interface */
- DEVMETHOD(device_probe, uchcom_match),
+ DEVMETHOD(device_probe, uchcom_probe),
DEVMETHOD(device_attach, uchcom_attach),
DEVMETHOD(device_detach, uchcom_detach),
More information about the p4-projects
mailing list