summaryrefslogtreecommitdiffstats
path: root/sys/dev
diff options
context:
space:
mode:
authoryokota <yokota@FreeBSD.org>2001-07-06 03:24:40 +0000
committeryokota <yokota@FreeBSD.org>2001-07-06 03:24:40 +0000
commit5a45dafeb0be4948dae2ce92ee58531e94020764 (patch)
tree298aa3842e710a6823dc89875dc97f664963512a /sys/dev
parent0227d4f3f6d8534b8027bb619b88334ce57f902b (diff)
downloadFreeBSD-src-5a45dafeb0be4948dae2ce92ee58531e94020764.zip
FreeBSD-src-5a45dafeb0be4948dae2ce92ee58531e94020764.tar.gz
Call ttymalloc() when sysmouse is opened, rather than
when the driver is attached. MFC after: 2 weeks
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/syscons/sysmouse.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/syscons/sysmouse.c b/sys/dev/syscons/sysmouse.c
index 60082e0..bb38cfe 100644
--- a/sys/dev/syscons/sysmouse.c
+++ b/sys/dev/syscons/sysmouse.c
@@ -86,6 +86,7 @@ smopen(dev_t dev, int flag, int mode, struct proc *p)
tp = dev->si_tty = ttymalloc(dev->si_tty);
if (!(tp->t_state & TS_ISOPEN)) {
+ sysmouse_tty = tp;
tp->t_oproc = smstart;
tp->t_param = smparam;
tp->t_stop = nottystop;
@@ -254,7 +255,6 @@ sm_attach_mouse(void *unused)
dev = make_dev(&sm_cdevsw, SC_MOUSE, UID_ROOT, GID_WHEEL, 0600,
"sysmouse");
- dev->si_tty = sysmouse_tty = ttymalloc(sysmouse_tty);
/* sysmouse doesn't have scr_stat */
}
OpenPOWER on IntegriCloud