summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb/uhub.c
diff options
context:
space:
mode:
authorjakemsr <jakemsr@openbsd.org>2011-01-25 20:03:35 +0000
committerjakemsr <jakemsr@openbsd.org>2011-01-25 20:03:35 +0000
commit0036ea2d1806ab014533b49d25d9fbdde380400e (patch)
treeb9ab38f34f0a65c8eaea6640215a6a79c0d12cba /sys/dev/usb/uhub.c
parentDon't ignore copyout() return value in sys_thrsleep(). (diff)
downloadwireguard-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/uhub.c')
-rw-r--r--sys/dev/usb/uhub.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/sys/dev/usb/uhub.c b/sys/dev/usb/uhub.c
index 57d8a0003df..bd20aeb8cc5 100644
--- a/sys/dev/usb/uhub.c
+++ b/sys/dev/usb/uhub.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: uhub.c,v 1.56 2010/12/06 04:41:40 jakemsr Exp $ */
+/* $OpenBSD: uhub.c,v 1.57 2011/01/25 20:03:36 jakemsr Exp $ */
/* $NetBSD: uhub.c,v 1.64 2003/02/08 03:32:51 ichiro Exp $ */
/* $FreeBSD: src/sys/dev/usb/uhub.c,v 1.18 1999/11/17 22:33:43 n_hibma Exp $ */
@@ -252,8 +252,6 @@ uhub_attach(struct device *parent, struct device *self, void *aux)
/* Wait with power off for a while. */
usbd_delay_ms(dev, USB_POWER_DOWN_TIME);
- usbd_add_drv_event(USB_EVENT_DRIVER_ATTACH, dev, &sc->sc_dev);
-
/*
* To have the best chance of success we do things in the exact same
* order as Windoze98. This should not be necessary, but some
@@ -571,9 +569,6 @@ uhub_detach(struct device *self, int flags)
usb_disconnect_port(rup, self);
}
- usbd_add_drv_event(USB_EVENT_DRIVER_DETACH, sc->sc_hub,
- &sc->sc_dev);
-
if (hub->ports[0].tt)
free(hub->ports[0].tt, M_USBDEV);
if (sc->sc_statusbuf)