- Remove cdevsw_add().

This commit is contained in:
Kazutaka YOKOTA 1999-10-06 13:03:09 +00:00
parent 5d5198c72f
commit afa239de67
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=51966
3 changed files with 0 additions and 13 deletions

View file

@ -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.
*/

View file

@ -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);

View file

@ -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.
*/