NODEVFS cleanup:

Don't call devsw_{add,delete}().
These two drivers are actually broken, and have been for quite some time.
This commit is contained in:
phk 2003-02-27 07:36:03 +00:00
parent 358bb5dd09
commit c87e32d6fb
2 changed files with 6 additions and 12 deletions

View File

@ -815,10 +815,6 @@ static int stliprobe(struct isa_device *idp)
{
stlibrd_t *brdp;
int btype, bclass;
static int once;
if (!once++)
cdevsw_add(&stli_cdevsw);
#if DEBUG
printf("stliprobe(idp=%x): unit=%d iobase=%x flags=%x\n", (int) idp,
@ -919,6 +915,9 @@ static int stliattach(struct isa_device *idp)
return(0);
if (brdp->state & BST_FOUND)
stli_brdattach(brdp);
if (0) {
make_dev(&stli_cdevsw, 0, 0, 0, 0, "istallion_is_broken");
}
return(1);
}

View File

@ -552,14 +552,6 @@ static struct cdevsw stl_cdevsw = {
/* kqfilter */ ttykqfilter,
};
static void stl_drvinit(void *unused)
{
cdevsw_add(&stl_cdevsw);
}
SYSINIT(sidev,SI_SUB_DRIVERS,SI_ORDER_MIDDLE+CDEV_MAJOR,stl_drvinit,NULL)
#endif
/*****************************************************************************/
@ -662,6 +654,9 @@ static int stlattach(struct isa_device *idp)
brdp->irqtype = stl_irqshared;
stl_brdinit(brdp);
if (0) {
make_dev(&stl_cdevsw, 0, 0, 0, 0, "stallion_is_broken");
}
return(1);
}