Use ttyalloc() instead of ttymalloc(NULL)

This commit is contained in:
Poul-Henning Kamp 2004-09-17 07:28:07 +00:00
parent 35779bdbd1
commit a45b36ad47
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=135367
7 changed files with 7 additions and 7 deletions

View File

@ -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;

View File

@ -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;

View File

@ -553,7 +553,7 @@ siattach(device_t dev)
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;

View File

@ -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;

View File

@ -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,

View File

@ -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;

View File

@ -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;