diff options
author | 2011-01-25 20:03:35 +0000 | |
---|---|---|
committer | 2011-01-25 20:03:35 +0000 | |
commit | 0036ea2d1806ab014533b49d25d9fbdde380400e (patch) | |
tree | b9ab38f34f0a65c8eaea6640215a6a79c0d12cba /sys/dev/usb/ugen.c | |
parent | Don't ignore copyout() return value in sys_thrsleep(). (diff) | |
download | wireguard-openbsd-0036ea2d1806ab014533b49d25d9fbdde380400e.tar.xz wireguard-openbsd-0036ea2d1806ab014533b49d25d9fbdde380400e.zip |
garbage collect "usb events". without /dev/usb there is no way to access
them from userland, and nothing in the kernel uses them.
ok krw@, miod@
Diffstat (limited to 'sys/dev/usb/ugen.c')
-rw-r--r-- | sys/dev/usb/ugen.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/sys/dev/usb/ugen.c b/sys/dev/usb/ugen.c index 8261bbe9c2d..aa9c673e2cf 100644 --- a/sys/dev/usb/ugen.c +++ b/sys/dev/usb/ugen.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ugen.c,v 1.63 2011/01/16 22:35:29 jakemsr Exp $ */ +/* $OpenBSD: ugen.c,v 1.64 2011/01/25 20:03:36 jakemsr Exp $ */ /* $NetBSD: ugen.c,v 1.63 2002/11/26 18:49:48 christos Exp $ */ /* $FreeBSD: src/sys/dev/usb/ugen.c,v 1.26 1999/11/17 22:33:41 n_hibma Exp $ */ @@ -190,9 +190,6 @@ ugen_attach(struct device *parent, struct device *self, void *aux) sc->sc_dying = 1; return; } - - usbd_add_drv_event(USB_EVENT_DRIVER_ATTACH, sc->sc_udev, - &sc->sc_dev); } int @@ -798,9 +795,6 @@ ugen_detach(struct device *self, int flags) mn = self->dv_unit * USB_MAX_ENDPOINTS; vdevgone(maj, mn, mn + USB_MAX_ENDPOINTS - 1, VCHR); - usbd_add_drv_event(USB_EVENT_DRIVER_DETACH, sc->sc_udev, - &sc->sc_dev); - return (0); } |