aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYoshihiro Takahashi <nyan@FreeBSD.org>1999-09-26 03:21:38 +0000
committerYoshihiro Takahashi <nyan@FreeBSD.org>1999-09-26 03:21:38 +0000
commitb22d0128a48752102c5c6f1d60fdfc6059932283 (patch)
treef6a30a0be2522210a599d91ea2b5f98cf3a26618
parent7e6fca85235d46042c10a8ca5981e5626bb23bfe (diff)
Notes
-rw-r--r--sys/pc98/pc98/mse.c17
1 files changed, 3 insertions, 14 deletions
diff --git a/sys/pc98/pc98/mse.c b/sys/pc98/pc98/mse.c
index 36806f280dc8..7af5aad1fe67 100644
--- a/sys/pc98/pc98/mse.c
+++ b/sys/pc98/pc98/mse.c
@@ -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 */