diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2006-11-29 19:55:38 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2006-11-29 19:55:38 +0000 |
commit | 3d6368669570b74f3d043e4e335810099a6bb409 (patch) | |
tree | 1a1559f727ae2477775123a4d57d7b561826bff6 /sys/dev/usb/uberry.c | |
parent | 80177de6e666f96af056968fb8bb576c06746d47 (diff) |
Detach correctly; ok deraadt@
Diffstat (limited to 'sys/dev/usb/uberry.c')
-rw-r--r-- | sys/dev/usb/uberry.c | 7 |
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; } |