summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys/dev/mcd/mcd.c4
-rw-r--r--sys/i386/isa/gpib.c4
-rw-r--r--sys/i386/isa/gsc.c4
-rw-r--r--sys/i386/isa/matcd/matcd.c3
-rw-r--r--sys/i386/isa/mcd.c4
-rw-r--r--sys/i386/isa/spigot.c4
-rw-r--r--sys/i386/isa/tw.c3
-rw-r--r--sys/i386/isa/wt.c4
8 files changed, 0 insertions, 30 deletions
diff --git a/sys/dev/mcd/mcd.c b/sys/dev/mcd/mcd.c
index f295a43..8531475 100644
--- a/sys/dev/mcd/mcd.c
+++ b/sys/dev/mcd/mcd.c
@@ -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;
diff --git a/sys/i386/isa/gpib.c b/sys/i386/isa/gpib.c
index 4b96605..8225877 100644
--- a/sys/i386/isa/gpib.c
+++ b/sys/i386/isa/gpib.c
@@ -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;
diff --git a/sys/i386/isa/gsc.c b/sys/i386/isa/gsc.c
index 29ad157..f8328cf 100644
--- a/sys/i386/isa/gsc.c
+++ b/sys/i386/isa/gsc.c
@@ -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;
diff --git a/sys/i386/isa/matcd/matcd.c b/sys/i386/isa/matcd/matcd.c
index 0ec1c2e..88ef03e 100644
--- a/sys/i386/isa/matcd/matcd.c
+++ b/sys/i386/isa/matcd/matcd.c
@@ -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",
diff --git a/sys/i386/isa/mcd.c b/sys/i386/isa/mcd.c
index f295a43..8531475 100644
--- a/sys/i386/isa/mcd.c
+++ b/sys/i386/isa/mcd.c
@@ -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;
diff --git a/sys/i386/isa/spigot.c b/sys/i386/isa/spigot.c
index 9f9fc20..23cbd3c 100644
--- a/sys/i386/isa/spigot.c
+++ b/sys/i386/isa/spigot.c
@@ -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;
diff --git a/sys/i386/isa/tw.c b/sys/i386/isa/tw.c
index 5d68678..accacce 100644
--- a/sys/i386/isa/tw.c
+++ b/sys/i386/isa/tw.c
@@ -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;
diff --git a/sys/i386/isa/wt.c b/sys/i386/isa/wt.c
index 4dc9818..b6a5b43 100644
--- a/sys/i386/isa/wt.c
+++ b/sys/i386/isa/wt.c
@@ -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;
OpenPOWER on IntegriCloud