summaryrefslogtreecommitdiff
path: root/sys/dev/usb/utrh.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/utrh.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/utrh.c')
-rw-r--r--sys/dev/usb/utrh.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/sys/dev/usb/utrh.c b/sys/dev/usb/utrh.c
index 2386954e990..ba23bb5a86b 100644
--- a/sys/dev/usb/utrh.c
+++ b/sys/dev/usb/utrh.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: utrh.c,v 1.6 2010/12/19 21:32:58 jasper Exp $ */
+/* $OpenBSD: utrh.c,v 1.7 2011/01/25 20:03:36 jakemsr Exp $ */
/*
* Copyright (c) 2009 Yojiro UO <yuo@nui.org>
@@ -140,8 +140,6 @@ utrh_attach(struct device *parent, struct device *self, void *aux)
}
sc->sc_ibuf = malloc(sc->sc_ilen, M_USBDEV, M_WAITOK);
- usbd_add_drv_event(USB_EVENT_DRIVER_ATTACH, sc->sc_udev,
- &sc->sc_hdev.sc_dev);
printf("\n");
/* attach sensor */
@@ -192,9 +190,6 @@ utrh_detach(struct device *self, int flags)
sc->sc_ibuf = NULL;
}
- usbd_add_drv_event(USB_EVENT_DRIVER_DETACH, sc->sc_udev,
- &sc->sc_hdev.sc_dev);
-
return (rv);
}