summaryrefslogtreecommitdiff
path: root/sys/dev/usb/uberry.c
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2006-11-29 19:55:38 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2006-11-29 19:55:38 +0000
commit3d6368669570b74f3d043e4e335810099a6bb409 (patch)
tree1a1559f727ae2477775123a4d57d7b561826bff6 /sys/dev/usb/uberry.c
parent80177de6e666f96af056968fb8bb576c06746d47 (diff)
Detach correctly; ok deraadt@
Diffstat (limited to 'sys/dev/usb/uberry.c')
-rw-r--r--sys/dev/usb/uberry.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/sys/dev/usb/uberry.c b/sys/dev/usb/uberry.c
index 4c0b8d6d369..fe632c24a9f 100644
--- a/sys/dev/usb/uberry.c
+++ b/sys/dev/usb/uberry.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: uberry.c,v 1.1 2006/11/27 11:38:43 deraadt Exp $ */
+/* $OpenBSD: uberry.c,v 1.2 2006/11/29 19:55:37 miod Exp $ */
/*-
* Copyright (c) 2006 Theo de Raadt <deraadt@openbsd.org>
@@ -91,6 +91,11 @@ USB_ATTACH(uberry)
USB_DETACH(uberry)
{
+ USB_DETACH_START(uberry, sc);
+
+ usbd_add_drv_event(USB_EVENT_DRIVER_DETACH, sc->sc_udev,
+ USBDEV(sc->sc_dev));
+
return 0;
}