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:
parent
4f57804cd3
commit
4c61f9036b
@ -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);
|
||||
}
|
||||
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user