summaryrefslogtreecommitdiff
path: root/sys/dev/usb/ucom.c
diff options
context:
space:
mode:
authorDavid Gwynne <dlg@cvs.openbsd.org>2006-03-27 08:19:40 +0000
committerDavid Gwynne <dlg@cvs.openbsd.org>2006-03-27 08:19:40 +0000
commit559bfdc666ff524e0e8c27567d3e04b76c48cdba (patch)
treea292947aa131775f727f075ba5a69be235406376 /sys/dev/usb/ucom.c
parentde8d7df75f4fcc32c892b21c34b8016cdaabbd3b (diff)
shrink by removing some unneeded ifdefs
Diffstat (limited to 'sys/dev/usb/ucom.c')
-rw-r--r--sys/dev/usb/ucom.c21
1 files changed, 1 insertions, 20 deletions
diff --git a/sys/dev/usb/ucom.c b/sys/dev/usb/ucom.c
index 7e023c17ba6..8078e29714c 100644
--- a/sys/dev/usb/ucom.c
+++ b/sys/dev/usb/ucom.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ucom.c,v 1.27 2005/11/21 18:16:43 millert Exp $ */
+/* $OpenBSD: ucom.c,v 1.28 2006/03/27 08:19:39 dlg Exp $ */
/* $NetBSD: ucom.c,v 1.49 2003/01/01 00:10:25 thorpej Exp $ */
/*
@@ -573,25 +573,6 @@ ucomwrite(dev_t dev, struct uio *uio, int flag)
return (error);
}
-#if defined(__NetBSD__)
-int
-ucompoll(dev_t dev, int events, usb_proc_ptr p)
-{
- struct ucom_softc *sc = ucom_cd.cd_devs[UCOMUNIT(dev)];
- struct tty *tp = sc->sc_tty;
- int error;
-
- if (sc->sc_dying)
- return (EIO);
-
- sc->sc_refcnt++;
- error = (*LINESW(tp, l_poll))(tp, events, p);
- if (--sc->sc_refcnt < 0)
- usb_detach_wakeup(USBDEV(sc->sc_dev));
- return (error);
-}
-#endif
-
struct tty *
ucomtty(dev_t dev)
{