diff options
| author | Andrew Thompson <thompsa@FreeBSD.org> | 2009-10-29 23:14:39 +0000 |
|---|---|---|
| committer | Andrew Thompson <thompsa@FreeBSD.org> | 2009-10-29 23:14:39 +0000 |
| commit | 1063b450cdee7134c27abed07ec12b8526aae73f (patch) | |
| tree | 6013ba64340cfcdf744aa1e5d088cce48ee0dbce /sys/dev/usb/controller | |
| parent | 6333b36c435bb0fe13fe9370ec430de229e0e5c7 (diff) | |
Notes
Diffstat (limited to 'sys/dev/usb/controller')
| -rw-r--r-- | sys/dev/usb/controller/usb_controller.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sys/dev/usb/controller/usb_controller.c b/sys/dev/usb/controller/usb_controller.c index a92544435905..fe59e06ee1d8 100644 --- a/sys/dev/usb/controller/usb_controller.c +++ b/sys/dev/usb/controller/usb_controller.c @@ -270,11 +270,9 @@ usb_bus_detach(struct usb_proc_msg *pm) mtx_unlock(&Giant); /* - * Free USB Root device, but not any sub-devices, hence they - * are freed by the caller of this function: + * Free USB device and all subdevices, if any. */ - usb_free_device(udev, - USB_UNCFG_FLAG_FREE_EP0); + usb_free_device(udev, 0); USB_BUS_LOCK(bus); /* clear bdev variable last */ |
