diff options
author | joe <joe@FreeBSD.org> | 2002-01-02 23:31:08 +0000 |
---|---|---|
committer | joe <joe@FreeBSD.org> | 2002-01-02 23:31:08 +0000 |
commit | 3cb6f9217c7d74ac67ec00ccaaaaa382c8ee6e65 (patch) | |
tree | 8ffee5e9e1aa552ea45ba8ceb50f56433abd3f9f /sys/dev/usb/usb.c | |
parent | bbfc99065f15d39a43ebe6ba942a6bbda7ce441e (diff) | |
download | FreeBSD-src-3cb6f9217c7d74ac67ec00ccaaaaa382c8ee6e65.zip FreeBSD-src-3cb6f9217c7d74ac67ec00ccaaaaa382c8ee6e65.tar.gz |
Revert uio.uio_td back to uio.uio_procp, using a #define in usb_port to
do the right thing on -current.
Diffstat (limited to 'sys/dev/usb/usb.c')
-rw-r--r-- | sys/dev/usb/usb.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/usb/usb.c b/sys/dev/usb/usb.c index bbee3c8..c35d679 100644 --- a/sys/dev/usb/usb.c +++ b/sys/dev/usb/usb.c @@ -50,7 +50,6 @@ #include <sys/lock.h> #include <sys/malloc.h> #include <sys/mutex.h> -#include <sys/kthread.h> #if defined(__NetBSD__) || defined(__OpenBSD__) #include <sys/device.h> #elif defined(__FreeBSD__) @@ -60,6 +59,7 @@ #include <sys/filio.h> #include <sys/uio.h> #endif +#include <sys/kthread.h> #include <sys/proc.h> #include <sys/conf.h> #include <sys/poll.h> @@ -474,7 +474,7 @@ usbioctl(dev_t devt, u_long cmd, caddr_t data, int flag, usb_proc_ptr p) uio.uio_rw = ur->request.bmRequestType & UT_READ ? UIO_READ : UIO_WRITE; - uio.uio_td = p; + uio.uio_procp = p; ptr = malloc(len, M_TEMP, M_WAITOK); if (uio.uio_rw == UIO_WRITE) { error = uiomove(ptr, len, &uio); |