summaryrefslogtreecommitdiffstats
path: root/sys/dev/uart/uart_tty.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/uart/uart_tty.c')
-rw-r--r--sys/dev/uart/uart_tty.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/uart/uart_tty.c b/sys/dev/uart/uart_tty.c
index c4d0220..45de134 100644
--- a/sys/dev/uart/uart_tty.c
+++ b/sys/dev/uart/uart_tty.c
@@ -340,7 +340,7 @@ uart_tty_attach(struct uart_softc *sc)
{
struct tty *tp;
- tp = ttymalloc(NULL);
+ tp = ttyalloc();
sc->sc_u.u_tty.tp = tp;
sc->sc_u.u_tty.si[0] = make_dev(&uart_cdevsw,
OpenPOWER on IntegriCloud