mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2025-01-11 17:04:19 +01:00
- Remove cdevsw_add().
This commit is contained in:
parent
5d5198c72f
commit
afa239de67
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=51966
@ -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.
|
||||
*/
|
||||
|
@ -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);
|
||||
|
@ -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.
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user