summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoryokota <yokota@FreeBSD.org>1999-10-06 13:03:09 +0000
committeryokota <yokota@FreeBSD.org>1999-10-06 13:03:09 +0000
commit48291e20e3bb9439772d81736efa6889aa2753e0 (patch)
tree279d4e4d9440b30c63ac009524a00d2858bfaa65
parentcf60da86f22ac56e217c712f8eeaae3b1bc2d033 (diff)
downloadFreeBSD-src-48291e20e3bb9439772d81736efa6889aa2753e0.zip
FreeBSD-src-48291e20e3bb9439772d81736efa6889aa2753e0.tar.gz
- Remove cdevsw_add().
-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 5f9f2c0..332e020 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 552aacd..0bf5e37 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 5f9f2c0..332e020 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.
*/
OpenPOWER on IntegriCloud