summaryrefslogtreecommitdiffstats
path: root/sys/dev/mse
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>1999-08-23 20:59:21 +0000
committerphk <phk@FreeBSD.org>1999-08-23 20:59:21 +0000
commit663cbe4fc26065f7af7d10faaee492a626156145 (patch)
tree32e619fadb473bfb85ff8e06044176f2ff323cce /sys/dev/mse
parent2a5ff1f726f814a9e4717afe3f14250f8030cace (diff)
downloadFreeBSD-src-663cbe4fc26065f7af7d10faaee492a626156145.zip
FreeBSD-src-663cbe4fc26065f7af7d10faaee492a626156145.tar.gz
Convert DEVFS hooks in (most) drivers to make_dev().
Diskslice/label code not yet handled. Vinum, i4b, alpha, pc98 not dealt with (left to respective Maintainers) Add the correct hook for devfs to kern_conf.c The net result of this excercise is that a lot less files depends on DEVFS, and devtoname() gets more sensible output in many cases. A few drivers had minor additional cleanups performed relating to cdevsw registration. A few drivers don't register a cdevsw{} anymore, but only use make_dev().
Diffstat (limited to 'sys/dev/mse')
-rw-r--r--sys/dev/mse/mse.c21
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);
}
OpenPOWER on IntegriCloud