summaryrefslogtreecommitdiff
path: root/sys/dev/ic/mc68681.c
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2013-10-07 17:53:58 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2013-10-07 17:53:58 +0000
commitfd805c541bd8320a2d9990c3188183ba68166ced (patch)
treea607e78fa39cf71f39b62bafb01b051d27fa40fd /sys/dev/ic/mc68681.c
parent16d580cef592704e4d519eed9240510f7508bf7c (diff)
Do not invoke ttymodem() directly, but l_modem from the current linedisc.
Diffstat (limited to 'sys/dev/ic/mc68681.c')
-rw-r--r--sys/dev/ic/mc68681.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/sys/dev/ic/mc68681.c b/sys/dev/ic/mc68681.c
index a02c8b2a692..884e58e10d0 100644
--- a/sys/dev/ic/mc68681.c
+++ b/sys/dev/ic/mc68681.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mc68681.c,v 1.2 2013/09/21 20:05:01 miod Exp $ */
+/* $OpenBSD: mc68681.c,v 1.3 2013/10/07 17:53:56 miod Exp $ */
/*
* Copyright (c) 2013 Miodrag Vallat.
@@ -111,7 +111,9 @@ mc68681_common_attach(struct mc68681_softc *sc)
}
/*
- * Update the ACR register. This requires both ports to be disabled. Restart timer if necessary. */
+ * Update the ACR register. This requires both ports to be disabled.
+ * Restart timer if necessary.
+ */
void
mc68681_set_acr(struct mc68681_softc *sc)
{
@@ -611,7 +613,7 @@ mc68681_dcdint(struct mc68681_softc *sc)
line = &sc->sc_line[port];
tp = line->tty;
if (tp != NULL)
- ttymodem(tp, dcdstate);
+ (*linesw[tp->t_line].l_modem)(tp, dcdstate);
}
}
}