summaryrefslogtreecommitdiffstats
path: root/sys/i386/isa/if_cx.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/if_cx.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/if_cx.c')
-rw-r--r--sys/i386/isa/if_cx.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/sys/i386/isa/if_cx.c b/sys/i386/isa/if_cx.c
index bdbdef1..c1114c7 100644
--- a/sys/i386/isa/if_cx.c
+++ b/sys/i386/isa/if_cx.c
@@ -218,6 +218,11 @@ cxprobe (struct isa_device *id)
/*
* The adapter is present, initialize the driver structures.
*/
+
+#ifdef DEVFS
+static void *cx_devfs_token;
+#endif
+
static int
cxattach (struct isa_device *id)
{
@@ -302,12 +307,8 @@ cxattach (struct isa_device *id)
dev_attach (&kdc_cx[unit]);
printf ("cx%d: <Cronyx-%s>\n", unit, b->name);
#ifdef DEVFS
- {
- void *x;
- x=devfs_add_devsw(
-/* path name devsw minor type uid gid perm*/
- "/", "cx", &cx_cdevsw, 0, DV_CHR, 0, 0, 0600);
- }
+ cx_devfs_token =
+ devfs_add_devswf(&cx_cdevsw, 0, DV_CHR, 0, 0, 0600, "cx");
#endif
return (1);
}
OpenPOWER on IntegriCloud