aboutsummaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorKazutaka YOKOTA <yokota@FreeBSD.org>1999-10-06 13:03:09 +0000
committerKazutaka YOKOTA <yokota@FreeBSD.org>1999-10-06 13:03:09 +0000
commitafa239de676eb896550d5730c6c802ea2ba3d63b (patch)
treeb18e9c5cb2bef64ce6a25f6c44111671329b3004 /sys
parent5d5198c72fa7d257a0f2bd3eb307161da84ee035 (diff)
- Remove cdevsw_add().
Notes
Notes: svn path=/head/; revision=51966
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/mse/mse.c3
-rw-r--r--sys/dev/syscons/syscons.c7
-rw-r--r--sys/i386/isa/mse.c3
3 files changed, 0 insertions, 13 deletions
diff --git a/sys/dev/mse/mse.c b/sys/dev/mse/mse.c
index 5f9f2c071523..332e020333d8 100644
--- a/sys/dev/mse/mse.c
+++ b/sys/dev/mse/mse.c
@@ -234,10 +234,7 @@ mseprobe(idp)
{
register struct mse_softc *sc = &mse_sc[idp->id_unit];
register int i;
- static int once;
- if (!once++)
- cdevsw_add(&mse_cdevsw);
/*
* Check for each mouse type in the table.
*/
diff --git a/sys/dev/syscons/syscons.c b/sys/dev/syscons/syscons.c
index 552aacda647f..0bf5e3721ad2 100644
--- a/sys/dev/syscons/syscons.c
+++ b/sys/dev/syscons/syscons.c
@@ -358,13 +358,6 @@ sc_attach_unit(int unit, int flags)
EVENTHANDLER_REGISTER(shutdown_pre_sync, scshutdown,
(void *)(uintptr_t)unit, SHUTDOWN_PRI_DEFAULT);
- /*
- * syscons's cdevsw must be registered from here. As syscons and
- * pcvt share the same major number, their cdevsw cannot be
- * registered at module loading/initialization time or by SYSINIT.
- */
- cdevsw_add(&sc_cdevsw); /* XXX do this just once... */
-
for (vc = 0; vc < sc->vtys; vc++) {
dev = make_dev(&sc_cdevsw, vc + unit * MAXCONS,
UID_ROOT, GID_WHEEL, 0600, "ttyv%r", vc + unit * MAXCONS);
diff --git a/sys/i386/isa/mse.c b/sys/i386/isa/mse.c
index 5f9f2c071523..332e020333d8 100644
--- a/sys/i386/isa/mse.c
+++ b/sys/i386/isa/mse.c
@@ -234,10 +234,7 @@ mseprobe(idp)
{
register struct mse_softc *sc = &mse_sc[idp->id_unit];
register int i;
- static int once;
- if (!once++)
- cdevsw_add(&mse_cdevsw);
/*
* Check for each mouse type in the table.
*/