diff options
author | Marc Balmer <mbalmer@cvs.openbsd.org> | 2007-06-04 10:34:05 +0000 |
---|---|---|
committer | Marc Balmer <mbalmer@cvs.openbsd.org> | 2007-06-04 10:34:05 +0000 |
commit | e3b8f0e33e350d79d720bc14dc8076e8fc653e13 (patch) | |
tree | 25633eb3012d656fb4d1ac2dcec201cb9b4a6175 /sys/dev/usb/usb.c | |
parent | 9de2d85fb9a6ed44d53a03d680c99999da003cfc (diff) |
Last part of FreeBSD/NetBSD sepcific code removal.
ok jsg@
Diffstat (limited to 'sys/dev/usb/usb.c')
-rw-r--r-- | sys/dev/usb/usb.c | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/sys/dev/usb/usb.c b/sys/dev/usb/usb.c index 6151962de3a..36abf61bb0c 100644 --- a/sys/dev/usb/usb.c +++ b/sys/dev/usb/usb.c @@ -1,4 +1,4 @@ -/* $OpenBSD: usb.c,v 1.40 2007/05/27 04:00:25 jsg Exp $ */ +/* $OpenBSD: usb.c,v 1.41 2007/06/04 10:34:04 mbalmer Exp $ */ /* $NetBSD: usb.c,v 1.77 2003/01/01 00:10:26 thorpej Exp $ */ /* @@ -105,20 +105,6 @@ struct usb_softc { TAILQ_HEAD(, usb_task) usb_all_tasks; -#if defined(__NetBSD__) -dev_type_open(usbopen); -dev_type_close(usbclose); -dev_type_read(usbread); -dev_type_ioctl(usbioctl); -dev_type_poll(usbpoll); -dev_type_kqfilter(usbkqfilter); - -const struct cdevsw usb_cdevsw = { - usbopen, usbclose, usbread, nowrite, usbioctl, - nostop, notty, usbpoll, nommap, usbkqfilter, -}; -#endif - Static volatile int threads_pending = 0; Static void usb_discover(void *); @@ -241,7 +227,6 @@ usb_attach(struct device *parent, struct device *self, void *aux) kthread_create_deferred(usb_create_event_thread, sc); } -#if defined(__NetBSD__) || defined(__OpenBSD__) void usb_create_event_thread(void *arg) { @@ -386,7 +371,6 @@ usbctlprint(void *aux, const char *pnp) return (UNCONF); } -#endif /* defined(__NetBSD__) || defined(__OpenBSD__) */ int usbopen(dev_t dev, int flag, int mode, usb_proc_ptr p) |