Don't call cdevsw_add().
This commit is contained in:
parent
98a61a385e
commit
a5f9edc45a
@ -730,10 +730,6 @@ mcd_probe(struct isa_device *dev)
|
||||
int unit = dev->id_unit;
|
||||
int i, j;
|
||||
unsigned char stbytes[3];
|
||||
static int once;
|
||||
|
||||
if (!once++)
|
||||
cdevsw_add(&mcd_cdevsw);
|
||||
|
||||
mcd_data[unit].flags = MCDPROBING;
|
||||
|
||||
|
@ -116,10 +116,6 @@ gpprobe(struct isa_device *dvp)
|
||||
{
|
||||
int status;
|
||||
struct gpib_softc *sc = &gpib_sc;
|
||||
static int once;
|
||||
|
||||
if (!once++)
|
||||
cdevsw_add(&gp_cdevsw);
|
||||
|
||||
gpib_port = dvp->id_iobase;
|
||||
status=1;
|
||||
|
@ -396,10 +396,6 @@ gscprobe (struct isa_device *isdp)
|
||||
struct gsc_unit *scu = unittab + unit;
|
||||
int stb;
|
||||
struct gsc_geom geom = NEW_GEOM;
|
||||
static int once;
|
||||
|
||||
if (!once++)
|
||||
cdevsw_add(&gsc_cdevsw);
|
||||
|
||||
scu->flags = FLAG_DEBUG;
|
||||
|
||||
|
@ -1199,10 +1199,7 @@ matcd_probe(struct isa_device *dev)
|
||||
int i,cdrive;
|
||||
unsigned char y;
|
||||
int port = dev->id_iobase; /*Take port hint from config file*/
|
||||
static int once;
|
||||
|
||||
if (!once++)
|
||||
cdevsw_add(&matcd_cdevsw);
|
||||
cdrive=nextcontroller; /*Controller defined by pass for now*/
|
||||
if (nextcontroller==NUMCTRLRS) {
|
||||
printf("matcd%d: - Too many interfaces specified in config\n",
|
||||
|
@ -730,10 +730,6 @@ mcd_probe(struct isa_device *dev)
|
||||
int unit = dev->id_unit;
|
||||
int i, j;
|
||||
unsigned char stbytes[3];
|
||||
static int once;
|
||||
|
||||
if (!once++)
|
||||
cdevsw_add(&mcd_cdevsw);
|
||||
|
||||
mcd_data[unit].flags = MCDPROBING;
|
||||
|
||||
|
@ -128,10 +128,6 @@ spigot_probe(struct isa_device *devp)
|
||||
{
|
||||
int status;
|
||||
struct spigot_softc *ss=(struct spigot_softc *)&spigot_softc[devp->id_unit];
|
||||
static int once;
|
||||
|
||||
if (!once++)
|
||||
cdevsw_add(&spigot_cdevsw);
|
||||
|
||||
ss->flags = 0;
|
||||
ss->maddr = 0;
|
||||
|
@ -355,10 +355,7 @@ static int twprobe(idp)
|
||||
struct tw_sc sc;
|
||||
int d;
|
||||
int tries;
|
||||
static int once;
|
||||
|
||||
if (!once++)
|
||||
cdevsw_add(&tw_cdevsw);
|
||||
sc.sc_port = idp->id_iobase;
|
||||
/* Search for the zero crossing signal at ports, bit combinations. */
|
||||
tw_zcport = tw_control;
|
||||
|
@ -209,10 +209,6 @@ static int
|
||||
wtprobe (struct isa_device *id)
|
||||
{
|
||||
wtinfo_t *t = wttab + id->id_unit;
|
||||
static int once;
|
||||
|
||||
if (!once++)
|
||||
cdevsw_add(&wt_cdevsw);
|
||||
|
||||
t->unit = id->id_unit;
|
||||
t->chan = id->id_drq;
|
||||
|
Loading…
x
Reference in New Issue
Block a user