mirror of
https://github.com/opnsense/src.git
synced 2026-06-10 17:22:46 -04:00
- Remove cdevsw_add().
This commit is contained in:
parent
5d5198c72f
commit
afa239de67
3 changed files with 0 additions and 13 deletions
|
|
@ -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 a new issue