summaryrefslogtreecommitdiff
path: root/sys/dev/usb/udcf.c
diff options
context:
space:
mode:
authorJacob Meuser <jakemsr@cvs.openbsd.org>2011-01-25 20:03:37 +0000
committerJacob Meuser <jakemsr@cvs.openbsd.org>2011-01-25 20:03:37 +0000
commit498cf2dc36fa36de9644663ecf827002dd1d0d42 (patch)
tree01605ac7fc47161753494c6101154a0e366cd607 /sys/dev/usb/udcf.c
parent412272acee23634745871fe5ba77ee2bfd896951 (diff)
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/udcf.c')
-rw-r--r--sys/dev/usb/udcf.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/sys/dev/usb/udcf.c b/sys/dev/usb/udcf.c
index 03e556b9aa6..d4b04048916 100644
--- a/sys/dev/usb/udcf.c
+++ b/sys/dev/usb/udcf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: udcf.c,v 1.52 2010/12/17 21:53:34 jasper Exp $ */
+/* $OpenBSD: udcf.c,v 1.53 2011/01/25 20:03:36 jakemsr Exp $ */
/*
* Copyright (c) 2006, 2007, 2008 Marc Balmer <mbalmer@openbsd.org>
@@ -275,9 +275,6 @@ udcf_attach(struct device *parent, struct device *self, void *aux)
break;
}
- usbd_add_drv_event(USB_EVENT_DRIVER_ATTACH, sc->sc_udev,
- &sc->sc_dev);
-
/* convert timevals to hz */
t.tv_sec = 0L;
t.tv_usec = 150000L;
@@ -355,8 +352,6 @@ udcf_detach(struct device *self, int flags)
if (sc->sc_detect_ct)
usb_rem_task(sc->sc_udev, &sc->sc_ct_task);
- usbd_add_drv_event(USB_EVENT_DRIVER_DETACH, sc->sc_udev,
- &sc->sc_dev);
return 0;
}