summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb/usb_subr.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/usb/usb_subr.c')
-rw-r--r--sys/dev/usb/usb_subr.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/dev/usb/usb_subr.c b/sys/dev/usb/usb_subr.c
index 63fc7e4..c589153 100644
--- a/sys/dev/usb/usb_subr.c
+++ b/sys/dev/usb/usb_subr.c
@@ -816,8 +816,9 @@ usbd_remove_device(dev, up)
#if defined(__NetBSD__)
/* XXX bit of a hack, only for hubs the detach is called
- * the code should register a detach function and use that one
- * to detach a device porperly
+ *
+ * easiest solution, register a detach method in the softc, call that
+ * one and pass the device struct to it, or the softc. Whatever.
*/
if (dev->bdev && dev->hub)
uhub_detach(dev->hub->hubdata);
OpenPOWER on IntegriCloud