diff options
| author | Poul-Henning Kamp <phk@FreeBSD.org> | 1999-08-23 20:59:21 +0000 |
|---|---|---|
| committer | Poul-Henning Kamp <phk@FreeBSD.org> | 1999-08-23 20:59:21 +0000 |
| commit | 9dcbe2404a244059708f3bbc8cbfa0a14887c4ea (patch) | |
| tree | 627cf9c78fb38268a3abc09deb78d86c316d87e6 /sys/dev/joy | |
| parent | d9183205179005f7582d41a23d4588b0b1140298 (diff) | |
Notes
Diffstat (limited to 'sys/dev/joy')
| -rw-r--r-- | sys/dev/joy/joy.c | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/sys/dev/joy/joy.c b/sys/dev/joy/joy.c index a2edbd5f0690f..56c90d1fc3774 100644 --- a/sys/dev/joy/joy.c +++ b/sys/dev/joy/joy.c @@ -29,16 +29,10 @@ #include "joy.h" #if NJOY > 0 - -#include "opt_devfs.h" - #include <sys/param.h> #include <sys/systm.h> #include <sys/conf.h> #include <sys/kernel.h> -#ifdef DEVFS -#include <sys/devfsext.h> -#endif /*DEVFS*/ #include <sys/uio.h> #include <machine/clock.h> @@ -75,9 +69,6 @@ static struct { int port; int x_off[2], y_off[2]; int timeout[2]; -#ifdef DEVFS - void *devfs_token; -#endif } joy[NJOY]; @@ -141,11 +132,7 @@ joyattach (struct isa_device *dev) joy[unit].port = dev->id_iobase; joy[unit].timeout[0] = joy[unit].timeout[1] = 0; printf("joy%d: joystick\n", unit); -#ifdef DEVFS - joy[dev->id_unit].devfs_token = - devfs_add_devswf(&joy_cdevsw, 0, DV_CHR, 0, 0, - 0600, "joy%d", unit); -#endif + make_dev(&joy_cdevsw, 0, 0, 0, 0600, "joy%d", unit); return 1; } |
