diff options
author | peter <peter@FreeBSD.org> | 1999-11-18 08:36:42 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 1999-11-18 08:36:42 +0000 |
commit | 11a0d6a799908af763648021e38789e2b4e99a3e (patch) | |
tree | c33c0ffc18e42656721a006973939b3cc8b84fb1 | |
parent | b28f5ff26be4d81732f54bbf6802a04d12462516 (diff) | |
download | FreeBSD-src-11a0d6a799908af763648021e38789e2b4e99a3e.zip FreeBSD-src-11a0d6a799908af763648021e38789e2b4e99a3e.tar.gz |
Touch up the make_dev() usage to hopefully make it work and fix warnings.
-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 0983f1b..ac68d97 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); } |