summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb/usbdi.c
diff options
context:
space:
mode:
authorn_hibma <n_hibma@FreeBSD.org>1999-06-01 07:22:01 +0000
committern_hibma <n_hibma@FreeBSD.org>1999-06-01 07:22:01 +0000
commit327b9c7ba334e7fe6cc93086bd750078d56f73fa (patch)
tree70ee63b21399841d479ee826e0af473f9b2f19c1 /sys/dev/usb/usbdi.c
parentff89b648a61d1c6395bd3371ea371da64ad79f6c (diff)
downloadFreeBSD-src-327b9c7ba334e7fe6cc93086bd750078d56f73fa.zip
FreeBSD-src-327b9c7ba334e7fe6cc93086bd750078d56f73fa.tar.gz
USB stopped working as of the recent cdevsw cleanup. This fixes that.
Diffstat (limited to 'sys/dev/usb/usbdi.c')
-rw-r--r--sys/dev/usb/usbdi.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/sys/dev/usb/usbdi.c b/sys/dev/usb/usbdi.c
index 52497e5..c827f2f 100644
--- a/sys/dev/usb/usbdi.c
+++ b/sys/dev/usb/usbdi.c
@@ -80,12 +80,6 @@ void usbd_do_request_async_cb
static SIMPLEQ_HEAD(, usbd_request) usbd_free_requests;
-#if defined(__FreeBSD__)
-#define USB_CDEV_MAJOR 108
-
-extern struct cdevsw usb_cdevsw;
-#endif
-
#ifdef USB_DEBUG
char *usbd_error_strs[USBD_ERROR_MAX] = {
"NORMAL_COMPLETION",
@@ -374,6 +368,7 @@ usbd_get_request_status(reqh, priv, buffer, count, status)
*count = reqh->actlen;
if (status)
*status = reqh->status;
+
return (USBD_NORMAL_COMPLETION);
}
OpenPOWER on IntegriCloud