summaryrefslogtreecommitdiffstats
path: root/sys/dev/uart/uart_tty.c
diff options
context:
space:
mode:
authormarcel <marcel@FreeBSD.org>2003-09-26 18:10:30 +0000
committermarcel <marcel@FreeBSD.org>2003-09-26 18:10:30 +0000
commit0d337c73dd13e2af5675c69e5eca9cb77443117f (patch)
tree0e2407e5c33b4c3d5747f06684e0fe3a587b6552 /sys/dev/uart/uart_tty.c
parent02203ed8511f300ddb2c0f0f1a9bc1d821f92754 (diff)
downloadFreeBSD-src-0d337c73dd13e2af5675c69e5eca9cb77443117f.zip
FreeBSD-src-0d337c73dd13e2af5675c69e5eca9cb77443117f.tar.gz
Catch up with the console interface change: the use of makedev() has
been abandoned in favor of a (device) name-based approach. Submitted by: phk Tested on: alpha
Diffstat (limited to 'sys/dev/uart/uart_tty.c')
-rw-r--r--sys/dev/uart/uart_tty.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/dev/uart/uart_tty.c b/sys/dev/uart/uart_tty.c
index 2814e6d..172308d 100644
--- a/sys/dev/uart/uart_tty.c
+++ b/sys/dev/uart/uart_tty.c
@@ -85,7 +85,6 @@ static void
uart_cnprobe(struct consdev *cp)
{
- cp->cn_dev = NULL;
cp->cn_pri = CN_DEAD;
KASSERT(uart_console.cookie == NULL, ("foo"));
@@ -343,8 +342,8 @@ uart_tty_attach(struct uart_softc *sc)
tp->t_stop = uart_tty_stop;
if (sc->sc_sysdev != NULL && sc->sc_sysdev->type == UART_DEV_CONSOLE) {
- ((struct consdev *)sc->sc_sysdev->cookie)->cn_dev =
- makedev(uart_cdevsw.d_maj, device_get_unit(sc->sc_dev));
+ sprintf(((struct consdev *)sc->sc_sysdev->cookie)->cn_name,
+ "ttyu%r", device_get_unit(sc->sc_dev));
}
swi_add(&tty_ithd, uart_driver_name, uart_tty_intr, sc, SWI_TTY,
OpenPOWER on IntegriCloud