diff options
| author | Ed Schouten <ed@FreeBSD.org> | 2009-05-29 06:41:23 +0000 |
|---|---|---|
| committer | Ed Schouten <ed@FreeBSD.org> | 2009-05-29 06:41:23 +0000 |
| commit | c5e30cc02b9bee4c53457d1bc4184b256ce1a569 (patch) | |
| tree | 8504d18b61b10ae1ba84f3c8d91f1f3572bcce6f /sys/dev/syscons | |
| parent | b6151caa3af4be855af359bf4d2872c45cb2263a (diff) | |
Notes
Diffstat (limited to 'sys/dev/syscons')
| -rw-r--r-- | sys/dev/syscons/syscons.c | 2 | ||||
| -rw-r--r-- | sys/dev/syscons/sysmouse.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/syscons/syscons.c b/sys/dev/syscons/syscons.c index 0ba7d7dcac89..653ff08274a9 100644 --- a/sys/dev/syscons/syscons.c +++ b/sys/dev/syscons/syscons.c @@ -334,7 +334,7 @@ sc_alloc_tty(int index, int devnum) stc = malloc(sizeof(struct sc_ttysoftc), M_DEVBUF, M_WAITOK); stc->st_index = index; stc->st_stat = NULL; - tp = tty_alloc(&sc_ttydevsw, stc, &Giant); + tp = tty_alloc_mutex(&sc_ttydevsw, stc, &Giant); /* Create device node. */ tty_makedev(tp, NULL, "v%r", devnum); diff --git a/sys/dev/syscons/sysmouse.c b/sys/dev/syscons/sysmouse.c index 67c5079f50cf..4e787efbbe51 100644 --- a/sys/dev/syscons/sysmouse.c +++ b/sys/dev/syscons/sysmouse.c @@ -164,7 +164,7 @@ static struct ttydevsw smdev_ttydevsw = { static void sm_attach_mouse(void *unused) { - sysmouse_tty = tty_alloc(&smdev_ttydevsw, NULL, NULL); + sysmouse_tty = tty_alloc(&smdev_ttydevsw, NULL); tty_makedev(sysmouse_tty, NULL, "sysmouse"); } |
