From 415585985cb93ec4bd441c45c7bbd43c2529256d Mon Sep 17 00:00:00 2001 From: scrappy Date: Thu, 28 Mar 1996 14:29:52 +0000 Subject: Switched from using devfs_add_sw() to using devfs_add_swf() Reviewed by: julian@freebsd.org --- sys/i386/isa/if_cx.c | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'sys/i386/isa/if_cx.c') 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: \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); } -- cgit v1.1