From 672c05d49c9565187ba43fd37c632fd5960c04b5 Mon Sep 17 00:00:00 2001 From: Poul-Henning Kamp Date: Thu, 15 Jul 2004 20:47:41 +0000 Subject: Preparation commit for the tty cleanups that will follow in the near future: rename ttyopen() -> tty_open() and ttyclose() -> tty_close(). We need the ttyopen() and ttyclose() for the new generic cdevsw functions for tty devices in order to have consistent naming. --- sys/dev/uart/uart_tty.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/dev/uart') diff --git a/sys/dev/uart/uart_tty.c b/sys/dev/uart/uart_tty.c index f63d4f0ceb274..c4d0220195bc2 100644 --- a/sys/dev/uart/uart_tty.c +++ b/sys/dev/uart/uart_tty.c @@ -453,7 +453,7 @@ uart_tty_open(struct cdev *dev, int flags, int mode, struct thread *td) return (error); goto loop; } - error = ttyopen(dev, tp); + error = tty_open(dev, tp); if (error) return (error); error = ttyld_open(tp, dev); @@ -492,7 +492,7 @@ uart_tty_close(struct cdev *dev, int flags, int mode, struct thread *td) sc->sc_pps.ppsparam.mode = 0; ttyld_close(tp, flags); - ttyclose(tp); + tty_close(tp); wakeup(sc); wakeup(TSA_CARR_ON(tp)); KASSERT(!(tp->t_state & TS_ISOPEN), ("foo")); -- cgit v1.3