summaryrefslogtreecommitdiff
path: root/sys/arch/mvme68k/dev
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2003-10-03 16:44:52 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2003-10-03 16:44:52 +0000
commit24c386b577f126bce761c7288e987ae93c36aa88 (patch)
tree99166e0d499a2be11543cc5dd9774c63a12466eb /sys/arch/mvme68k/dev
parente43c66ff4e929d0beb6716fb882523dc136b8c0c (diff)
Merge tty_attach() in ttymalloc() and tty_detach() in ttyfree(). The need for
separate tty registering is gone now that sparc has switched to wscons, and this makes the code less error-prone. Also, remove tests for ttymalloc() failure, since it uses M_WAITOK. ok millert@ deraadt@, tested by various people as well besides me...
Diffstat (limited to 'sys/arch/mvme68k/dev')
-rw-r--r--sys/arch/mvme68k/dev/bugtty.c3
-rw-r--r--sys/arch/mvme68k/dev/cl.c3
-rw-r--r--sys/arch/mvme68k/dev/wl.c3
-rw-r--r--sys/arch/mvme68k/dev/zs.c3
4 files changed, 4 insertions, 8 deletions
diff --git a/sys/arch/mvme68k/dev/bugtty.c b/sys/arch/mvme68k/dev/bugtty.c
index 5f9e6450009..cf539c37352 100644
--- a/sys/arch/mvme68k/dev/bugtty.c
+++ b/sys/arch/mvme68k/dev/bugtty.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: bugtty.c,v 1.10 2003/08/15 20:32:14 tedu Exp $ */
+/* $OpenBSD: bugtty.c,v 1.11 2003/10/03 16:44:50 miod Exp $ */
/*
* Copyright (c) 1995 Dale Rahn.
@@ -171,7 +171,6 @@ bugttyopen(dev, flag, mode, p)
tp = bugtty_tty[unit];
} else {
tp = bugtty_tty[unit] = ttymalloc();
- tty_attach(tp);
}
tp->t_oproc = bugttyoutput;
tp->t_param = NULL;
diff --git a/sys/arch/mvme68k/dev/cl.c b/sys/arch/mvme68k/dev/cl.c
index 85693b3dff8..85e710f2af1 100644
--- a/sys/arch/mvme68k/dev/cl.c
+++ b/sys/arch/mvme68k/dev/cl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cl.c,v 1.31 2003/08/15 20:32:14 tedu Exp $ */
+/* $OpenBSD: cl.c,v 1.32 2003/10/03 16:44:50 miod Exp $ */
/*
* Copyright (c) 1995 Dale Rahn. All rights reserved.
@@ -553,7 +553,6 @@ clopen(dev, flag, mode, p)
tp = cl->tty;
} else {
tp = cl->tty = ttymalloc();
- tty_attach(tp);
}
tp->t_oproc = clstart;
tp->t_param = clparam;
diff --git a/sys/arch/mvme68k/dev/wl.c b/sys/arch/mvme68k/dev/wl.c
index 051cfc23d79..c0dddcfdf72 100644
--- a/sys/arch/mvme68k/dev/wl.c
+++ b/sys/arch/mvme68k/dev/wl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: wl.c,v 1.12 2003/08/15 20:32:14 tedu Exp $ */
+/* $OpenBSD: wl.c,v 1.13 2003/10/03 16:44:50 miod Exp $ */
/*
* Copyright (c) 1995 Dale Rahn. All rights reserved.
@@ -518,7 +518,6 @@ wlopen(dev, flag, mode, p)
tp = cl->tty;
} else {
tp = cl->tty = ttymalloc();
- tty_attach(tp);
}
tp->t_oproc = clstart;
tp->t_param = clparam;
diff --git a/sys/arch/mvme68k/dev/zs.c b/sys/arch/mvme68k/dev/zs.c
index 3b91f2cac17..3c42abdb6c2 100644
--- a/sys/arch/mvme68k/dev/zs.c
+++ b/sys/arch/mvme68k/dev/zs.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: zs.c,v 1.13 2003/06/02 05:09:14 deraadt Exp $ */
+/* $OpenBSD: zs.c,v 1.14 2003/10/03 16:44:50 miod Exp $ */
/*
* Copyright (c) 2000 Steve Murphree, Jr.
@@ -364,7 +364,6 @@ zsopen(dev, flag, mode, p)
zp = &sc->sc_zs[zsside(dev)];
if (zp->tty == NULL) {
zp->tty = ttymalloc();
- tty_attach(zp->tty);
zs_ttydef(zp);
if (minor(dev) < NZSLINE)
zs_tty[minor(dev)] = zp->tty;