summaryrefslogtreecommitdiff
path: root/sys/dev/usb/uhid.c
diff options
context:
space:
mode:
authorMarc Balmer <mbalmer@cvs.openbsd.org>2007-06-04 10:34:05 +0000
committerMarc Balmer <mbalmer@cvs.openbsd.org>2007-06-04 10:34:05 +0000
commite3b8f0e33e350d79d720bc14dc8076e8fc653e13 (patch)
tree25633eb3012d656fb4d1ac2dcec201cb9b4a6175 /sys/dev/usb/uhid.c
parent9de2d85fb9a6ed44d53a03d680c99999da003cfc (diff)
Last part of FreeBSD/NetBSD sepcific code removal.
ok jsg@
Diffstat (limited to 'sys/dev/usb/uhid.c')
-rw-r--r--sys/dev/usb/uhid.c21
1 files changed, 1 insertions, 20 deletions
diff --git a/sys/dev/usb/uhid.c b/sys/dev/usb/uhid.c
index 7118c4307ca..e00dd185405 100644
--- a/sys/dev/usb/uhid.c
+++ b/sys/dev/usb/uhid.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: uhid.c,v 1.32 2007/05/27 04:00:25 jsg Exp $ */
+/* $OpenBSD: uhid.c,v 1.33 2007/06/04 10:34:04 mbalmer Exp $ */
/* $NetBSD: uhid.c,v 1.57 2003/03/11 16:44:00 augustss Exp $ */
/*
@@ -101,21 +101,6 @@ struct uhid_softc {
#define UHID_CHUNK 128 /* chunk size for read */
#define UHID_BSIZE 1020 /* buffer size */
-#if defined(__NetBSD__)
-dev_type_open(uhidopen);
-dev_type_close(uhidclose);
-dev_type_read(uhidread);
-dev_type_write(uhidwrite);
-dev_type_ioctl(uhidioctl);
-dev_type_poll(uhidpoll);
-dev_type_kqfilter(uhidkqfilter);
-
-const struct cdevsw uhid_cdevsw = {
- uhidopen, uhidclose, uhidread, uhidwrite, uhidioctl,
- nostop, notty, uhidpoll, nommap, uhidkqfilter,
-};
-#endif
-
Static void uhid_intr(struct uhidev *, void *, u_int len);
Static int uhid_do_read(struct uhid_softc *, struct uio *uio, int);
@@ -200,13 +185,9 @@ uhid_detach(struct device *self, int flags)
}
/* locate the major number */
-#if defined(__NetBSD__)
- maj = cdevsw_lookup_major(&uhid_cdevsw);
-#elif defined(__OpenBSD__)
for (maj = 0; maj < nchrdev; maj++)
if (cdevsw[maj].d_open == uhidopen)
break;
-#endif
/* Nuke the vnodes for any open instances (calls close). */
mn = self->dv_unit;