diff options
author | Peter Wemm <peter@FreeBSD.org> | 1999-11-18 08:36:42 +0000 |
---|---|---|
committer | Peter Wemm <peter@FreeBSD.org> | 1999-11-18 08:36:42 +0000 |
commit | f14f25d086bb8a42337385f9c8a41a6dca60ec27 (patch) | |
tree | c33c0ffc18e42656721a006973939b3cc8b84fb1 /sys/i386/isa/if_cx.c | |
parent | 609d21b734fc20495a481a199ae7cf5b15ac96cd (diff) | |
download | src-f14f25d086bb8a42337385f9c8a41a6dca60ec27.tar.gz src-f14f25d086bb8a42337385f9c8a41a6dca60ec27.zip |
Touch up the make_dev() usage to hopefully make it work and fix warnings.
Notes
Notes:
svn path=/head/; revision=53355
Diffstat (limited to 'sys/i386/isa/if_cx.c')
-rw-r--r-- | sys/i386/isa/if_cx.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/sys/i386/isa/if_cx.c b/sys/i386/isa/if_cx.c index 0983f1b8a253..ac68d9725b64 100644 --- a/sys/i386/isa/if_cx.c +++ b/sys/i386/isa/if_cx.c @@ -92,6 +92,8 @@ static void cxup (cx_chan_t *c); cx_board_t cxboard [NCX]; /* adapter state structures */ cx_chan_t *cxchan [NCX*NCHAN]; /* unit to channel struct pointer */ +extern struct cdevsw cx_cdevsw; + static unsigned short irq_valid_values [] = { 3, 5, 7, 10, 11, 12, 15, 0 }; static unsigned short drq_valid_values [] = { 5, 6, 7, 0 }; static unsigned short port_valid_values [] = { @@ -288,11 +290,7 @@ cxattach (struct isa_device *id) timeout (cxtimeout, 0, hz*5); printf ("cx%d: <Cronyx-%s>\n", unit, b->name); - { - extern struct cdevsw cx_cdevsw; - - make_dev(&cx_cdevsw, 0, 0, 0, 0600, "cx"); - } + make_dev(&cx_cdevsw, unit, UID_ROOT, GID_WHEEL, 0600, "cx%d", unit); return (1); } |