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/wt.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/wt.c')
-rw-r--r-- | sys/i386/isa/wt.c | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/sys/i386/isa/wt.c b/sys/i386/isa/wt.c index ff7b52b..26b3af6 100644 --- a/sys/i386/isa/wt.c +++ b/sys/i386/isa/wt.c @@ -20,7 +20,7 @@ * the original CMU copyright notice. * * Version 1.3, Thu Nov 11 12:09:13 MSK 1993 - * $Id: wt.c,v 1.29 1996/01/27 02:33:37 bde Exp $ + * $Id: wt.c,v 1.30 1996/02/22 00:31:48 joerg Exp $ * */ @@ -285,7 +285,6 @@ static int wtattach (struct isa_device *id) { wtinfo_t *t = wttab + id->id_unit; - char name[32]; if (t->type == ARCHIVE) { printf ("wt%d: type <Archive>\n", t->unit); @@ -298,14 +297,12 @@ wtattach (struct isa_device *id) isa_dmainit(t->chan, 1024); #ifdef DEVFS - sprintf(name,"rwt%d",id->id_unit); - t->devfs_token_r = devfs_add_devsw( - "/", name, &wt_cdevsw, id->id_unit, - DV_CHR, 0, 0, 0600); - sprintf(name,"wt%d",id->id_unit); - t->devfs_token = devfs_add_devsw( - "/", name, &wt_bdevsw, id->id_unit, - DV_BLK, 0, 0, 0600); + t->devfs_token_r = + devfs_add_devswf(&wt_cdevsw, id->id_unit, DV_CHR, 0, 0, + 0600, "rwt%d", id->id_unit); + t->devfs_token = + devfs_add_devswf(&wt_bdevsw, id->id_unit, DV_BLK, 0, 0, + 0600, "wt%d", id->id_unit); #endif return (1); } |