summaryrefslogtreecommitdiffstats
path: root/sys/i386/isa/ctx.c
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/i386/isa/ctx.c
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/i386/isa/ctx.c')
-rw-r--r--sys/i386/isa/ctx.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/sys/i386/isa/ctx.c b/sys/i386/isa/ctx.c
index 4a80d1d..b56a1f8 100644
--- a/sys/i386/isa/ctx.c
+++ b/sys/i386/isa/ctx.c
@@ -8,7 +8,7 @@
* of this software, nor does the author assume any responsibility
* for damages incurred with its use.
*
- * $Id: ctx.c,v 1.15 1995/12/15 00:29:28 bde Exp $
+ * $Id: ctx.c,v 1.16 1995/12/15 00:53:55 bde Exp $
*/
/*
@@ -214,7 +214,6 @@ static int
ctxattach(struct isa_device * devp)
{
struct ctx_soft_registers *sr;
- char name[32];
sr = &(ctx_sr[devp->id_unit]);
sr->cp0 = 0; /* zero out the shadow registers */
@@ -226,9 +225,9 @@ ctxattach(struct isa_device * devp)
kdc_ctx[devp->id_unit].kdc_state = DC_IDLE;
return (1);
#ifdef DEVFS
- sprintf(name,"ctx%d",devp->id_unit);
- sr->devfs_token = devfs_add_devsw( "/", name, &ctx_cdevsw, 0,
- DV_CHR, 0, 0, 0600);
+ sr->devfs_token =
+ devfs_add_devswf(&ctx_cdevsw, 0, DV_CHR, 0, 0, 0600,
+ "ctx%d", devp->id_unit);
#endif /* DEVFS */
}
OpenPOWER on IntegriCloud