summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb/uhidev.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/uhidev.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/uhidev.c')
-rw-r--r--sys/dev/usb/uhidev.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/sys/dev/usb/uhidev.c b/sys/dev/usb/uhidev.c
index 0128a0499aa..20b86017730 100644
--- a/sys/dev/usb/uhidev.c
+++ b/sys/dev/usb/uhidev.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: uhidev.c,v 1.40 2010/09/24 08:33:59 yuo Exp $ */
+/* $OpenBSD: uhidev.c,v 1.41 2011/01/25 20:03:36 jakemsr Exp $ */
/* $NetBSD: uhidev.c,v 1.14 2003/03/11 16:44:00 augustss Exp $ */
/*
@@ -246,9 +246,6 @@ uhidev_attach(struct device *parent, struct device *self, void *aux)
sc->sc_nrepid = nrepid;
sc->sc_isize = 0;
- usbd_add_drv_event(USB_EVENT_DRIVER_ATTACH, sc->sc_udev,
- &sc->sc_dev);
-
for (repid = 0; repid < nrepid; repid++) {
repsz = hid_report_size(desc, size, hid_input, repid);
DPRINTF(("uhidev_match: repid=%d, repsz=%d\n", repid, repsz));
@@ -377,9 +374,6 @@ uhidev_detach(struct device *self, int flags)
}
}
- usbd_add_drv_event(USB_EVENT_DRIVER_DETACH, sc->sc_udev,
- &sc->sc_dev);
-
return (rv);
}