Don't call cdevsw_add().

This commit is contained in:
phk 2001-11-04 09:09:41 +00:00
parent 77936adc99
commit 6d85b02e40
7 changed files with 0 additions and 41 deletions

View File

@ -109,12 +109,6 @@ acdattach(struct atapi_softc *atp)
{
struct acd_softc *cdp;
struct changer *chp;
static int acd_cdev_done = 0;
if (!acd_cdev_done) {
cdevsw_add(&acd_cdevsw);
acd_cdev_done++;
}
if ((cdp = acd_init_lun(atp, NULL)) == NULL) {
ata_printf(atp->controller, atp->unit, "acd: out of memory\n");

View File

@ -90,12 +90,6 @@ astattach(struct atapi_softc *atp)
struct ast_softc *stp;
struct ast_readposition position;
dev_t dev;
static int ast_cdev_done = 0;
if (!ast_cdev_done) {
cdevsw_add(&ast_cdevsw);
ast_cdev_done = 1;
}
stp = malloc(sizeof(struct ast_softc), M_AST, M_NOWAIT | M_ZERO);
if (!stp) {

View File

@ -438,10 +438,7 @@ dgbprobe(dev)
int i, v;
u_long win_size; /* size of vizible memory window */
int unit=dev->id_unit;
static int once;
if (!once++)
cdevsw_add(&dgb_cdevsw);
sc->unit=dev->id_unit;
sc->port=dev->id_iobase;

View File

@ -189,10 +189,7 @@ static int
ctxprobe(struct isa_device * devp)
{
int status;
static int once;
if (!once++)
cdevsw_add(&ctx_cdevsw);
if (inb(devp->id_iobase) == 0xff) /* 0xff only if board absent */
status = 0;
else {

View File

@ -1457,11 +1457,3 @@ atapi_dump(int ctrlr, int lun, char *label, void *data, int len)
while (--len > 0) printf ("-%x", *p++);
printf ("\n");
}
static void
acd_drvinit(void *unused)
{
cdevsw_add(&acd_cdevsw);
}
SYSINIT(acddev, SI_SUB_DRIVERS, SI_ORDER_MIDDLE + CDEV_MAJOR, acd_drvinit, NULL)

View File

@ -715,10 +715,3 @@ static int wfd_eject (struct wfd *t, int closeit)
return wfd_request_wait (t, ATAPI_START_STOP,
0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0);
}
static void wfd_drvinit(void *unused)
{
cdevsw_add(&wfd_cdevsw);
}
SYSINIT(wfddev,SI_SUB_DRIVERS,SI_ORDER_MIDDLE+CDEV_MAJOR,wfd_drvinit,NULL)

View File

@ -761,11 +761,3 @@ wst_reset(struct wst *t)
outb(t->ata->port + AR_COMMAND, 0x08);
DELAY(30);
}
static void
wst_drvinit(void *unused)
{
cdevsw_add(&wst_cdevsw);
}
SYSINIT(wstdev,SI_SUB_DRIVERS,SI_ORDER_MIDDLE+CDEV_MAJOR,wst_drvinit,NULL)