diff options
author | thompsa <thompsa@FreeBSD.org> | 2009-04-05 18:19:52 +0000 |
---|---|---|
committer | thompsa <thompsa@FreeBSD.org> | 2009-04-05 18:19:52 +0000 |
commit | 5e0713868e18949219adf2ed92a0333d519abe52 (patch) | |
tree | ba0c7f2b1fbdf56ffd283a4402c1928dbda4b837 /sys/dev/usb/controller/usb_controller.c | |
parent | eb9ff558ad364e6b42bf6773a941fe72b1e93fc7 (diff) | |
download | FreeBSD-src-5e0713868e18949219adf2ed92a0333d519abe52.zip FreeBSD-src-5e0713868e18949219adf2ed92a0333d519abe52.tar.gz |
MFp4 //depot/projects/usb@159866
- memory usage reduction by only allocating the required USB pipes and USB
interfaces.
- cleanup some USB parsing functions to be more flexible.
Submitted by: Hans Petter Selasky
Diffstat (limited to 'sys/dev/usb/controller/usb_controller.c')
-rw-r--r-- | sys/dev/usb/controller/usb_controller.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/usb/controller/usb_controller.c b/sys/dev/usb/controller/usb_controller.c index 84066a2..28b99d3 100644 --- a/sys/dev/usb/controller/usb_controller.c +++ b/sys/dev/usb/controller/usb_controller.c @@ -254,8 +254,8 @@ usb2_bus_detach(struct usb2_proc_msg *pm) * Free USB Root device, but not any sub-devices, hence they * are freed by the caller of this function: */ - usb2_detach_device(udev, USB_IFACE_INDEX_ANY, 0); - usb2_free_device(udev); + usb2_free_device(udev, + USB_UNCFG_FLAG_FREE_EP0); mtx_unlock(&Giant); USB_BUS_LOCK(bus); |