PERFORCE change 132110 for review
Hans Petter Selasky
hselasky at FreeBSD.org
Sun Dec 30 07:57:29 PST 2007
http://perforce.freebsd.org/chv.cgi?CH=132110
Change 132110 by hselasky at hselasky_laptop001 on 2007/12/30 15:57:05
"uchcom" compile fixes.
Affected files ...
.. //depot/projects/usb/src/sys/dev/usb/uchcom.c#17 edit
Differences ...
==== //depot/projects/usb/src/sys/dev/usb/uchcom.c#17 (text+ko) ====
@@ -384,6 +384,7 @@
uchcom_update_version(sc);
uchcom_clear_chip(sc);
uchcom_reset_chip(sc);
+ update_status(sc);
sc->sc_dtr = 1;
sc->sc_rts = 1;
@@ -597,7 +598,7 @@
else
uchcom_set_dtrrts_20(sc, ~val);
- return (0);
+ return;
}
static void
@@ -812,7 +813,7 @@
case CS6:
case CS7:
return (EIO);
- defaul:
+ default:
break;
}
@@ -895,7 +896,7 @@
usbd_copy_out(xfer->frbuffers + 0, 0, buf,
UCHCOM_INTR_LEAST);
- DPRINTFN(0, "data = 0x%02X 0x%02X 0x%02X 0x%02X\n"
+ DPRINTFN(0, "data = 0x%02X 0x%02X 0x%02X 0x%02X\n",
(unsigned)buf[0], (unsigned)buf[1],
(unsigned)buf[2], (unsigned)buf[3]);
@@ -1040,6 +1041,8 @@
sizeof (struct uchcom_softc)
};
-DRIVER_MODULE(uchcom, uhub, uchcom_driver, ucom_devclass, usbd_driver_load, 0);
+static devclass_t uchcom_devclass;
+
+DRIVER_MODULE(uchcom, uhub, uchcom_driver, uchcom_devclass, usbd_driver_load, 0);
MODULE_DEPEND(uchcom, usb, 1, 1, 1);
MODULE_DEPEND(uchcom, ucom, UCOM_MINVER, UCOM_PREFVER, UCOM_MAXVER);
More information about the p4-projects
mailing list