diff options
author | phk <phk@FreeBSD.org> | 2004-09-17 11:02:53 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2004-09-17 11:02:53 +0000 |
commit | caa914df82800af01af8f6f18796bbf330fc858f (patch) | |
tree | 65e42fda33591a9482887310c402d6a54be1a1e8 /sys/alpha | |
parent | e919477712a5eafabb3db28a3277a176d7604787 (diff) | |
download | FreeBSD-src-caa914df82800af01af8f6f18796bbf330fc858f.zip FreeBSD-src-caa914df82800af01af8f6f18796bbf330fc858f.tar.gz |
Be slightly less bogus in struct tty allocation.
Diffstat (limited to 'sys/alpha')
-rw-r--r-- | sys/alpha/alpha/promcons.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/alpha/alpha/promcons.c b/sys/alpha/alpha/promcons.c index 30db04d..62ef0e8 100644 --- a/sys/alpha/alpha/promcons.c +++ b/sys/alpha/alpha/promcons.c @@ -71,7 +71,6 @@ static struct cdevsw prom_cdevsw = { }; -static struct tty *prom_tp = NULL; static int polltime; static struct callout_handle promtimeouthandle = CALLOUT_HANDLE_INITIALIZER(&promtimeouthandle); @@ -99,7 +98,7 @@ promopen(dev, flag, mode, td) return ENXIO; - tp = prom_tp = dev->si_tty = ttymalloc(prom_tp); + tp = dev->si_tty = ttyalloc(); s = spltty(); tp->t_oproc = promstart; @@ -142,7 +141,7 @@ promclose(dev, flag, mode, td) struct thread *td; { int unit = minor(dev); - struct tty *tp = prom_tp; + struct tty *tp = dev->si_tty; if (unit != 0) return ENXIO; |