Merge from sys/i386/isa/mse.c revision 1.44.

This commit is contained in:
Yoshihiro Takahashi 1999-09-26 03:21:38 +00:00
parent 7e6fca8523
commit b22d0128a4

View File

@ -287,7 +287,10 @@ 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.
*/
@ -923,18 +926,4 @@ mse_get98m(port, dx, dy, but)
}
#endif
static int mse_devsw_installed;
static void mse_drvinit(void *unused)
{
if( ! mse_devsw_installed ) {
cdevsw_add(&mse_cdevsw);
mse_devsw_installed = 1;
}
}
SYSINIT(msedev,SI_SUB_DRIVERS,SI_ORDER_MIDDLE+CDEV_MAJOR,mse_drvinit,NULL)
#endif /* NMSE */