summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorWarner Losh <imp@FreeBSD.org>2004-09-26 05:54:28 +0000
committerWarner Losh <imp@FreeBSD.org>2004-09-26 05:54:28 +0000
commit9fcb683ee25f818a129906ca3d98aef13b558c67 (patch)
tree0dcad498d98e10b4177743bef89c0bb771f34046 /sys/dev
parentcf78e84cf24f2a3d2c376994834835ed1f14b59a (diff)
Notes
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/usb/usb_port.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/dev/usb/usb_port.h b/sys/dev/usb/usb_port.h
index 95bb8adcabbd..972c4e917408 100644
--- a/sys/dev/usb/usb_port.h
+++ b/sys/dev/usb/usb_port.h
@@ -421,6 +421,7 @@ typedef struct callout usb_callout_t;
#define config_detach(dev, flag) \
do { \
+ device_detach(dev); \
free(device_get_ivars(dev), M_USB); \
device_delete_child(device_get_parent(dev), dev); \
} while (0);