diff options
author | phk <phk@FreeBSD.org> | 2001-11-04 08:58:22 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2001-11-04 08:58:22 +0000 |
commit | a5f9edc45abbd6f38474751dd2d30eb9d751f116 (patch) | |
tree | 1f26cc7374accb5a09a8b855028b1c1fc442a215 /sys/i386 | |
parent | 98a61a385e29acaa59fd2d42e5c3ee74b0d8b93f (diff) | |
download | FreeBSD-src-a5f9edc45abbd6f38474751dd2d30eb9d751f116.zip FreeBSD-src-a5f9edc45abbd6f38474751dd2d30eb9d751f116.tar.gz |
Don't call cdevsw_add().
Diffstat (limited to 'sys/i386')
-rw-r--r-- | sys/i386/isa/gpib.c | 4 | ||||
-rw-r--r-- | sys/i386/isa/gsc.c | 4 | ||||
-rw-r--r-- | sys/i386/isa/matcd/matcd.c | 3 | ||||
-rw-r--r-- | sys/i386/isa/mcd.c | 4 | ||||
-rw-r--r-- | sys/i386/isa/spigot.c | 4 | ||||
-rw-r--r-- | sys/i386/isa/tw.c | 3 | ||||
-rw-r--r-- | sys/i386/isa/wt.c | 4 |
7 files changed, 0 insertions, 26 deletions
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; |