summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb/uvideo.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/uvideo.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/uvideo.c')
-rw-r--r--sys/dev/usb/uvideo.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/sys/dev/usb/uvideo.c b/sys/dev/usb/uvideo.c
index f0f85b5aba8..c3234672394 100644
--- a/sys/dev/usb/uvideo.c
+++ b/sys/dev/usb/uvideo.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: uvideo.c,v 1.148 2011/01/16 22:35:29 jakemsr Exp $ */
+/* $OpenBSD: uvideo.c,v 1.149 2011/01/25 20:03:36 jakemsr Exp $ */
/*
* Copyright (c) 2008 Robert Nagy <robert@openbsd.org>
@@ -556,8 +556,6 @@ uvideo_attach_hook(void *arg)
sc->sc_mmap_cur = 0;
sc->sc_mmap_count = 0;
- usbd_add_drv_event(USB_EVENT_DRIVER_ATTACH, sc->sc_udev, &sc->sc_dev);
-
DPRINTF(1, "uvideo_attach: doing video_attach_mi\n");
sc->sc_videodev = video_attach_mi(&uvideo_hw_if, sc, &sc->sc_dev);
}
@@ -576,8 +574,6 @@ uvideo_detach(struct device *self, int flags)
if (sc->sc_videodev != NULL)
rv = config_detach(sc->sc_videodev, flags);
- usbd_add_drv_event(USB_EVENT_DRIVER_DETACH, sc->sc_udev, &sc->sc_dev);
-
return (rv);
}