diff options
author | scrappy <scrappy@FreeBSD.org> | 1996-03-28 14:29:52 +0000 |
---|---|---|
committer | scrappy <scrappy@FreeBSD.org> | 1996-03-28 14:29:52 +0000 |
commit | 415585985cb93ec4bd441c45c7bbd43c2529256d (patch) | |
tree | a799d7ab93b91102069e46ed96392e309b7b469f /sys/i386/isa/joy.c | |
parent | f55298f39fa39052b4a4bb6f1f3a18aa12d6b771 (diff) | |
download | FreeBSD-src-415585985cb93ec4bd441c45c7bbd43c2529256d.zip FreeBSD-src-415585985cb93ec4bd441c45c7bbd43c2529256d.tar.gz |
Switched from using devfs_add_sw() to using devfs_add_swf()
Reviewed by: julian@freebsd.org
Diffstat (limited to 'sys/i386/isa/joy.c')
-rw-r--r-- | sys/i386/isa/joy.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/sys/i386/isa/joy.c b/sys/i386/isa/joy.c index ffb615d..350d784 100644 --- a/sys/i386/isa/joy.c +++ b/sys/i386/isa/joy.c @@ -115,16 +115,14 @@ static int joyattach (struct isa_device *dev) { int unit = dev->id_unit; - char name[32]; joy[unit].port = dev->id_iobase; joy[unit].timeout[0] = joy[unit].timeout[1] = 0; printf("joy%d: joystick\n", unit); #ifdef DEVFS - sprintf(name, "joy%d", unit); - joy[dev->id_unit].devfs_token = devfs_add_devsw( "/", "joy", - &joy_cdevsw, 0, - DV_CHR, 0, 0, 0600); + joy[dev->id_unit].devfs_token = + devfs_add_devswf(&joy_cdevsw, 0, DV_CHR, 0, 0, + 0600, "joy%d", unit); #endif return 1; } |