NODEVFS cleanup: Create devices with make_dev() instead of cdevsw_add()

This commit is contained in:
phk 2003-02-26 20:54:46 +00:00
parent 29c393118a
commit 4c43535acf

View File

@ -242,10 +242,7 @@ extern struct timecounter loran_timecounter;
static int
loranprobe(struct isa_device *dvp)
{
static int once;
if (!once++)
cdevsw_add(&loran_cdevsw);
dvp->id_iobase = PORT;
return (8);
}
@ -298,7 +295,7 @@ loranattach(struct isa_device *isdp)
TAILQ_INIT(&working);
for (i = 0; i < NLORAN + 1; i++) {
TAILQ_INIT(&minors[i]);
make_dev(&loran_cdevsw, i, UID_ROOT, GID_WHEEL, 0600, "loran%d", i);
}
for (i = 0; i < NDUMMY; i++) {