Don't call make_dev() before we are ready for it.

This commit is contained in:
Poul-Henning Kamp 2003-03-09 20:42:49 +00:00
parent 167b972088
commit 45901e280b

View File

@ -175,7 +175,6 @@ cninit(void)
* Make the best console the preferred console.
*/
cnselect(best_cn);
make_dev(&cn_cdevsw, 0, UID_ROOT, GID_WHEEL, 0600, "console");
}
void
@ -587,3 +586,12 @@ cndbctl(int on)
if (on)
refcount++;
}
static void
cn_drvinit(void *unused)
{
make_dev(&cn_cdevsw, 0, UID_ROOT, GID_WHEEL, 0600, "console");
}
SYSINIT(cndev, SI_SUB_DRIVERS, SI_ORDER_MIDDLE, cn_drvinit, NULL)