diff options
author | bde <bde@FreeBSD.org> | 1998-08-20 05:12:48 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 1998-08-20 05:12:48 +0000 |
commit | cdfa36e28bd3772297a1ac77d9d83ed427a536c7 (patch) | |
tree | 0ff3aecd94f810e1cc4f698ac8293ad20b464122 /sys/isa/sio.c | |
parent | b165af84ca1814128c65b8e93ea3ca1d2a62b8b1 (diff) | |
download | FreeBSD-src-cdfa36e28bd3772297a1ac77d9d83ed427a536c7.zip FreeBSD-src-cdfa36e28bd3772297a1ac77d9d83ed427a536c7.tar.gz |
Fixed devfs initialization which I broke in the previous commit.
Diffstat (limited to 'sys/isa/sio.c')
-rw-r--r-- | sys/isa/sio.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/sys/isa/sio.c b/sys/isa/sio.c index 0b98d6e..c36de17 100644 --- a/sys/isa/sio.c +++ b/sys/isa/sio.c @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * from: @(#)com.c 7.5 (Berkeley) 5/16/91 - * $Id: sio.c,v 1.210 1998/08/11 17:01:32 bde Exp $ + * $Id: sio.c,v 1.211 1998/08/19 04:17:37 bde Exp $ */ #include "opt_comconsole.h" @@ -1070,6 +1070,12 @@ determined_type: ; com_addr(unit) = com; splx(s); + if (!sio_registered) { + dev = makedev(CDEV_MAJOR, 0); + cdevsw_add(&dev, &sio_cdevsw, NULL); + register_swi(SWI_TTY, siopoll); + sio_registered = TRUE; + } #ifdef DEVFS com->devfs_token_ttyd = devfs_add_devswf(&sio_cdevsw, unit, DV_CHR, @@ -1090,12 +1096,6 @@ determined_type: ; unit | CALLOUT_MASK | CONTROL_LOCK_STATE, DV_CHR, UID_UUCP, GID_DIALER, 0660, "cuala%r", unit); #endif - if (!sio_registered) { - dev = makedev(CDEV_MAJOR, 0); - cdevsw_add(&dev, &sio_cdevsw, NULL); - register_swi(SWI_TTY, siopoll); - sio_registered = TRUE; - } com->id_flags = isdp->id_flags; /* Heritate id_flags for later */ return (1); } |