summaryrefslogtreecommitdiffstats
path: root/sys/dev/rc
diff options
context:
space:
mode:
authorscrappy <scrappy@FreeBSD.org>1996-03-28 14:29:52 +0000
committerscrappy <scrappy@FreeBSD.org>1996-03-28 14:29:52 +0000
commit415585985cb93ec4bd441c45c7bbd43c2529256d (patch)
treea799d7ab93b91102069e46ed96392e309b7b469f /sys/dev/rc
parentf55298f39fa39052b4a4bb6f1f3a18aa12d6b771 (diff)
downloadFreeBSD-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/dev/rc')
-rw-r--r--sys/dev/rc/rc.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/dev/rc/rc.c b/sys/dev/rc/rc.c
index 7844e4d..d05b423 100644
--- a/sys/dev/rc/rc.c
+++ b/sys/dev/rc/rc.c
@@ -263,7 +263,6 @@ rcattach(dvp)
struct rc_chans *rc = &rc_chans[dvp->id_unit * CD180_NCHAN];
static int rc_wakeup_started = 0;
struct tty *tp;
- char name[32];
/* Thorooughly test the device */
if (rcb->rcb_probed != RC_PROBED)
@@ -296,10 +295,11 @@ rcattach(dvp)
tp->t_ispeed = tp->t_ospeed = TTYDEF_SPEED;
#ifdef DEVFS
/* FIX THIS to reflect real devices */
- sprintf(name,"rc%d.%d",dvp->id_unit,chan);
- rc->devfs_token = devfs_add_devsw( "/", name,
- &rc_cdevsw,(dvp->id_unit * CD180_NCHAN) + chan ,
- DV_CHR, 0, 0, 0600);
+ rc->devfs_token =
+ devfs_add_devswf(&rc_cdevsw,
+ (dvp->id_unit * CD180_NCHAN) + chan,
+ DV_CHR, 0, 0, 0600, "rc%d.%d",
+ dvp->id_unit, chan);
#endif
}
rcb->rcb_probed = RC_ATTACHED;
OpenPOWER on IntegriCloud