summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorriastradh <riastradh@NetBSD.org>2022-10-26 23:45:10 +0000
committerriastradh <riastradh@NetBSD.org>2022-10-26 23:45:10 +0000
commitfbf04d2724fd5f44a5f14e5c55c04be756c8116e (patch)
treee97b1058012dd762d6578fc3c801968701c76e61 /sys/dev
parent5db188796355dd40b0eb9438330ac58d85da8c88 (diff)
hpf1275a(4): Convert to ttylock/ttyunlock.
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/hpc/hpf1275a_tty.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/hpc/hpf1275a_tty.c b/sys/dev/hpc/hpf1275a_tty.c
index 1a2cf9d5874..9c3d92bb9e0 100644
--- a/sys/dev/hpc/hpf1275a_tty.c
+++ b/sys/dev/hpc/hpf1275a_tty.c
@@ -1,4 +1,4 @@
-/* $NetBSD: hpf1275a_tty.c,v 1.31 2021/08/07 16:19:11 thorpej Exp $ */
+/* $NetBSD: hpf1275a_tty.c,v 1.32 2022/10/26 23:45:10 riastradh Exp $ */
/*
* Copyright (c) 2004 Valeriy E. Ushakov
@@ -28,7 +28,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: hpf1275a_tty.c,v 1.31 2021/08/07 16:19:11 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: hpf1275a_tty.c,v 1.32 2022/10/26 23:45:10 riastradh Exp $");
#include "opt_wsdisplay_compat.h"
@@ -346,9 +346,9 @@ hpf1275a_close(struct tty *tp, int flag)
int s;
s = spltty();
- mutex_spin_enter(&tty_lock);
+ ttylock(tp);
ttyflush(tp, FREAD | FWRITE);
- mutex_spin_exit(&tty_lock); /* XXX */
+ ttyunlock(tp); /* XXX */
ttyldisc_release(tp->t_linesw);
tp->t_linesw = ttyldisc_default();
if (sc != NULL) {