summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorMichael Knudsen <mk@cvs.openbsd.org>2010-03-06 17:09:32 +0000
committerMichael Knudsen <mk@cvs.openbsd.org>2010-03-06 17:09:32 +0000
commit77b27464affb7bb6aeb43237d66b12cfc8d24a41 (patch)
tree8105ba2a3b9ff2e3562603cde57507e3b2bf3e2f /sys/dev
parent155cab395476ad4b7bceff86e30e997b0389a072 (diff)
In cdce_detach(), add usbd_add_drv_event(USB_EVENT_DRIVER_DETACH, ...)
like other drivers do. Tested and ok mpf.
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/usb/if_cdce.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/dev/usb/if_cdce.c b/sys/dev/usb/if_cdce.c
index c7acf64aa7b..f6619167dc1 100644
--- a/sys/dev/usb/if_cdce.c
+++ b/sys/dev/usb/if_cdce.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_cdce.c,v 1.44 2009/10/13 19:33:17 pirofti Exp $ */
+/* $OpenBSD: if_cdce.c,v 1.45 2010/03/06 17:09:31 mk Exp $ */
/*
* Copyright (c) 1997, 1998, 1999, 2000-2003 Bill Paul <wpaul@windriver.com>
@@ -389,6 +389,9 @@ cdce_detach(struct device *self, int flags)
sc->cdce_attached = 0;
splx(s);
+ usbd_add_drv_event(USB_EVENT_DRIVER_DETACH, sc->cdce_udev,
+ &sc->cdce_dev);
+
return (0);
}