diff options
Diffstat (limited to 'sys/dev/mse/mse.c')
-rw-r--r-- | sys/dev/mse/mse.c | 21 |
1 files changed, 3 insertions, 18 deletions
diff --git a/sys/dev/mse/mse.c b/sys/dev/mse/mse.c index a8676bc..ddc41a8 100644 --- a/sys/dev/mse/mse.c +++ b/sys/dev/mse/mse.c @@ -11,7 +11,7 @@ * this software for any purpose. It is provided "as is" * without express or implied warranty. * - * $Id: mse.c,v 1.43 1999/05/30 16:52:20 phk Exp $ + * $Id: mse.c,v 1.44 1999/05/31 11:26:17 phk Exp $ */ /* * Driver for the Logitech and ATI Inport Bus mice for use with 386bsd and @@ -46,8 +46,6 @@ #include "mse.h" #if NMSE > 0 -#include "opt_devfs.h" - #include <sys/param.h> #include <sys/systm.h> #include <sys/conf.h> @@ -55,9 +53,6 @@ #include <sys/poll.h> #include <sys/select.h> #include <sys/uio.h> -#ifdef DEVFS -#include <sys/devfsext.h> -#endif /*DEVFS*/ #include <machine/clock.h> #include <machine/mouse.h> @@ -127,10 +122,6 @@ static struct mse_softc { mousehw_t hw; mousemode_t mode; mousestatus_t status; -#ifdef DEVFS - void *devfs_token; - void *n_devfs_token; -#endif } mse_sc[NMSE]; /* Flags */ @@ -281,14 +272,8 @@ mseattach(idp) idp->id_ointr = mseintr; sc->sc_port = idp->id_iobase; sc->mode.accelfactor = (idp->id_flags & MSE_CONFIG_ACCEL) >> 4; -#ifdef DEVFS - sc->devfs_token = - devfs_add_devswf(&mse_cdevsw, unit << 1, DV_CHR, 0, 0, - 0600, "mse%d", unit); - sc->n_devfs_token = - devfs_add_devswf(&mse_cdevsw, (unit<<1)+1, DV_CHR,0, 0, - 0600, "nmse%d", unit); -#endif + make_dev(&mse_cdevsw, unit << 1, 0, 0, 0600, "mse%d", unit); + make_dev(&mse_cdevsw, (unit<<1)+1, 0, 0, 0600, "nmse%d", unit); return (1); } |