From caa914df82800af01af8f6f18796bbf330fc858f Mon Sep 17 00:00:00 2001 From: phk Date: Fri, 17 Sep 2004 11:02:53 +0000 Subject: Be slightly less bogus in struct tty allocation. --- sys/alpha/alpha/promcons.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'sys/alpha') 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; -- cgit v1.1