Initialize cn_name instead of cn_dev

This commit is contained in:
phk 2003-09-26 10:53:29 +00:00
parent 30f60296f2
commit 7a378ad134
2 changed files with 2 additions and 2 deletions

View File

@ -250,7 +250,7 @@ void
promcnattach(int alpha_console)
{
prom_consdev.cn_pri = CN_NORMAL;
prom_consdev.cn_dev = makedev(CDEV_MAJOR, 0);
sprintf(prom_consdev.cn_name, "promcons");
make_dev(&prom_cdevsw, 0, UID_ROOT, GID_WHEEL, 0600, "promcons");
cnadd(&prom_consdev);
promcn_attached = 1;

View File

@ -227,7 +227,7 @@ zs_cnattach(vm_offset_t base, vm_offset_t offset)
/* should really bet part of ivars */
zs_console_addr = (caddr_t) ALPHA_PHYS_TO_K0SEG(base + offset);
zs_consdev.cn_dev = makedev(CDEV_MAJOR, 0);
sprintf(zs_consdev.cn_name, "zs0");
zs_consdev.cn_pri = CN_NORMAL;
make_dev(&zs_cdevsw, 0, UID_ROOT, GID_WHEEL, 0600, "zs0");
cnadd(&zs_consdev);