diff options
author | nyan <nyan@FreeBSD.org> | 1999-09-26 03:21:38 +0000 |
---|---|---|
committer | nyan <nyan@FreeBSD.org> | 1999-09-26 03:21:38 +0000 |
commit | e5d7fddaba3170e42973b99bb2d256d47a8053ad (patch) | |
tree | 35aec26a5eadcbdb85731aa0fb80eb2126c927d9 /sys/pc98 | |
parent | a9b8cbd24d77a8cfe376d2a052b8341bd2431863 (diff) | |
download | FreeBSD-src-e5d7fddaba3170e42973b99bb2d256d47a8053ad.zip FreeBSD-src-e5d7fddaba3170e42973b99bb2d256d47a8053ad.tar.gz |
Merge from sys/i386/isa/mse.c revision 1.44.
Diffstat (limited to 'sys/pc98')
-rw-r--r-- | sys/pc98/pc98/mse.c | 17 |
1 files changed, 3 insertions, 14 deletions
diff --git a/sys/pc98/pc98/mse.c b/sys/pc98/pc98/mse.c index 36806f2..7af5aad 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 */ |