diff options
author | phk <phk@FreeBSD.org> | 2004-09-17 07:28:07 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2004-09-17 07:28:07 +0000 |
commit | e107a6f14059151546c94bb1dd9308c2efacab24 (patch) | |
tree | 1cf9df7774726c4621a5a96f44f606a7af4fd33b | |
parent | 55525729a12626a4268858c5994ec97153753e98 (diff) | |
download | FreeBSD-src-e107a6f14059151546c94bb1dd9308c2efacab24.zip FreeBSD-src-e107a6f14059151546c94bb1dd9308c2efacab24.tar.gz |
Use ttyalloc() instead of ttymalloc(NULL)
-rw-r--r-- | sys/dev/rp/rp.c | 2 | ||||
-rw-r--r-- | sys/dev/sab/sab.c | 2 | ||||
-rw-r--r-- | sys/dev/si/si.c | 2 | ||||
-rw-r--r-- | sys/dev/sio/sio.c | 2 | ||||
-rw-r--r-- | sys/dev/uart/uart_tty.c | 2 | ||||
-rw-r--r-- | sys/dev/usb/ubser.c | 2 | ||||
-rw-r--r-- | sys/dev/zs/zs.c | 2 |
7 files changed, 7 insertions, 7 deletions
diff --git a/sys/dev/rp/rp.c b/sys/dev/rp/rp.c index da32de8..a244af5 100644 --- a/sys/dev/rp/rp.c +++ b/sys/dev/rp/rp.c @@ -861,7 +861,7 @@ rp_attachcommon(CONTROLLER_T *ctlp, int num_aiops, int num_ports) for(aiop=0; aiop < num_aiops; aiop++) { num_chan = sGetAiopNumChan(ctlp, aiop); for(chan=0; chan < num_chan; chan++, port++, rp++) { - rp->rp_tty = ttymalloc(NULL); + rp->rp_tty = ttyalloc(); rp->rp_port = port; rp->rp_ctlp = ctlp; rp->rp_unit = unit; diff --git a/sys/dev/sab/sab.c b/sys/dev/sab/sab.c index 0b39f0d..4771ded 100644 --- a/sys/dev/sab/sab.c +++ b/sys/dev/sab/sab.c @@ -452,7 +452,7 @@ sabtty_attach(device_t dev) return (ENXIO); } - tp = ttymalloc(NULL); + tp = ttyalloc(); sc->sc_si = make_dev(&sabtty_cdevsw, device_get_unit(dev), UID_ROOT, GID_WHEEL, 0600, "%s", device_get_desc(dev)); sc->sc_si->si_drv1 = sc; diff --git a/sys/dev/si/si.c b/sys/dev/si/si.c index ad81ab0..0cd84d7 100644 --- a/sys/dev/si/si.c +++ b/sys/dev/si/si.c @@ -553,7 +553,7 @@ try_next: for (x = 0; x < nport; x++, pp++, ccbp++) { pp->sp_ccb = ccbp; /* save the address */ - pp->sp_tty = ttymalloc(NULL); + pp->sp_tty = ttyalloc(); pp->sp_pend = IDLE_CLOSE; pp->sp_state = 0; /* internal flag */ pp->sp_iin.c_iflag = TTYDEF_IFLAG; diff --git a/sys/dev/sio/sio.c b/sys/dev/sio/sio.c index 979e954..599f188 100644 --- a/sys/dev/sio/sio.c +++ b/sys/dev/sio/sio.c @@ -967,7 +967,7 @@ sioattach(dev, xrid, rclk) com->line_status_port = iobase + com_lsr; com->modem_status_port = iobase + com_msr; - tp = com->tp = ttymalloc(NULL); + tp = com->tp = ttyalloc(); tp->t_oproc = comstart; tp->t_param = comparam; tp->t_stop = comstop; 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, diff --git a/sys/dev/usb/ubser.c b/sys/dev/usb/ubser.c index eab35be..d189a62 100644 --- a/sys/dev/usb/ubser.c +++ b/sys/dev/usb/ubser.c @@ -314,7 +314,7 @@ USB_ATTACH(ubser) printf("%s: make_dev failed\n", USBDEVNAME(sc->sc_dev)); goto bad; } - sc->dev[i]->si_tty = tp = ttymalloc(NULL); + sc->dev[i]->si_tty = tp = ttyalloc(); if (sc->dev[i]->si_tty == NULL) { printf("%s: ttymalloc failed\n", USBDEVNAME(sc->sc_dev)); goto bad; diff --git a/sys/dev/zs/zs.c b/sys/dev/zs/zs.c index ab13d09..ab3eb33 100644 --- a/sys/dev/zs/zs.c +++ b/sys/dev/zs/zs.c @@ -262,7 +262,7 @@ zstty_attach(device_t dev) sc->sc_iput = sc->sc_iget = sc->sc_ibuf; sc->sc_oget = sc->sc_obuf; - tp = ttymalloc(NULL); + tp = ttyalloc(); sc->sc_si = make_dev(&zstty_cdevsw, device_get_unit(dev), UID_ROOT, GID_WHEEL, 0600, "%s", device_get_desc(dev)); sc->sc_si->si_drv1 = sc; |