NODEVFS cleanup: Create devices with make_dev() instead of cdevsw_add()
This commit is contained in:
parent
e4d0d8c84a
commit
109a8a2e47
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=111572
@ -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++) {
|
||||
|
Loading…
Reference in New Issue
Block a user