diff options
author | netchild <netchild@FreeBSD.org> | 2005-12-29 17:29:18 +0000 |
---|---|---|
committer | netchild <netchild@FreeBSD.org> | 2005-12-29 17:29:18 +0000 |
commit | 80320ff9fda865505dc60ede494ae2309c24fbf5 (patch) | |
tree | d036fafecbf17892d566ab1b03a576965d327f8b /sys/dev | |
parent | d9cbcb50b52b6c033a00eac46c9285955eed228c (diff) | |
download | FreeBSD-src-80320ff9fda865505dc60ede494ae2309c24fbf5.zip FreeBSD-src-80320ff9fda865505dc60ede494ae2309c24fbf5.tar.gz |
Emit USB_EVENT_DRIVER_DETACH on detach.
PR: 83247
Submitted by: Sangwoo Shim <ssw@neo.redjade.org>
MFC after: 2 weeks
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/usb/if_cdce.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/dev/usb/if_cdce.c b/sys/dev/usb/if_cdce.c index dc27101..61bfe85 100644 --- a/sys/dev/usb/if_cdce.c +++ b/sys/dev/usb/if_cdce.c @@ -342,6 +342,9 @@ USB_DETACH(cdce) CDCE_UNLOCK(sc); mtx_destroy(&sc->cdce_mtx); + usbd_add_drv_event(USB_EVENT_DRIVER_DETACH, sc->cdce_udev, + USBDEV(sc->cdce_dev)); + return (0); } |