diff --git a/sys/alpha/alpha/promcons.c b/sys/alpha/alpha/promcons.c index e95d951d6127..063d8300286b 100644 --- a/sys/alpha/alpha/promcons.c +++ b/sys/alpha/alpha/promcons.c @@ -266,10 +266,10 @@ CONS_DRIVER(prom, NULL, NULL, NULL, promcngetc, promcncheckc, promcnputc, NULL); void promcnattach(int alpha_console) { - cn_tab = &prom_consdev; prom_consdev.cn_pri = CN_NORMAL; prom_consdev.cn_dev = makedev(CDEV_MAJOR, 0); make_dev(&prom_cdevsw, 0, UID_ROOT, GID_WHEEL, 0600, "promcons"); + cnadd(&prom_consdev); } /* diff --git a/sys/alpha/tlsb/zs_tlsb.c b/sys/alpha/tlsb/zs_tlsb.c index ee3dbef246a9..1e5679bcd2db 100644 --- a/sys/alpha/tlsb/zs_tlsb.c +++ b/sys/alpha/tlsb/zs_tlsb.c @@ -231,8 +231,8 @@ zs_cnattach(vm_offset_t base, vm_offset_t offset) zs_consdev.cn_dev = makedev(CDEV_MAJOR, 0); zs_consdev.cn_pri = CN_NORMAL; - cn_tab = &zs_consdev; make_dev(&zs_cdevsw, 0, UID_ROOT, GID_WHEEL, 0600, "zs0"); + cnadd(&zs_consdev); return (0); } diff --git a/sys/dev/sio/sio.c b/sys/dev/sio/sio.c index fe62c70dbc8b..29f594b04e44 100644 --- a/sys/dev/sio/sio.c +++ b/sys/dev/sio/sio.c @@ -2840,7 +2840,7 @@ siocnattach(port, speed) siocnopen(&sp, siocniobase, comdefaultrate); splx(s); - cn_tab = &sio_consdev; + cnadd(&sio_consdev); return (0); } diff --git a/sys/dev/syscons/syscons.c b/sys/dev/syscons/syscons.c index c6dd8a23ddd3..cf9e4b9a5399 100644 --- a/sys/dev/syscons/syscons.c +++ b/sys/dev/syscons/syscons.c @@ -1407,7 +1407,7 @@ sccnattach(void) sc_console_unit = unit; sc_console = SC_STAT(sc_get_softc(unit, SC_KERNEL_CONSOLE)->dev[0]); consdev.cn_dev = makedev(CDEV_MAJOR, 0); - cn_tab = &consdev; + cnadd(&consdev); } #endif /* __alpha__ */ diff --git a/sys/pc98/cbus/sio.c b/sys/pc98/cbus/sio.c index 8f999b514495..cc231ddd09b3 100644 --- a/sys/pc98/cbus/sio.c +++ b/sys/pc98/cbus/sio.c @@ -4466,7 +4466,7 @@ siocnattach(port, speed) siocnopen(&sp, siocniobase, comdefaultrate); splx(s); - cn_tab = &sio_consdev; + cnadd(&sio_consdev); return (0); } diff --git a/sys/pc98/pc98/sio.c b/sys/pc98/pc98/sio.c index 8f999b514495..cc231ddd09b3 100644 --- a/sys/pc98/pc98/sio.c +++ b/sys/pc98/pc98/sio.c @@ -4466,7 +4466,7 @@ siocnattach(port, speed) siocnopen(&sp, siocniobase, comdefaultrate); splx(s); - cn_tab = &sio_consdev; + cnadd(&sio_consdev); return (0); } diff --git a/sys/pc98/pc98/syscons.c b/sys/pc98/pc98/syscons.c index dddaacceb829..edeac2dab34d 100644 --- a/sys/pc98/pc98/syscons.c +++ b/sys/pc98/pc98/syscons.c @@ -1411,7 +1411,7 @@ sccnattach(void) sc_console_unit = unit; sc_console = SC_STAT(sc_get_softc(unit, SC_KERNEL_CONSOLE)->dev[0]); consdev.cn_dev = makedev(CDEV_MAJOR, 0); - cn_tab = &consdev; + cnadd(&consdev); } #endif /* __alpha__ */