diff options
author | peter <peter@FreeBSD.org> | 1999-11-18 05:43:32 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 1999-11-18 05:43:32 +0000 |
commit | 3577ecc3c0bcf4603d67289d9af01df673a5a7a4 (patch) | |
tree | 1811e6ad6bfc64a45b02b80dabeffd739db5efda /sys/dev/iicbus | |
parent | 773cbf275819857dc5a621832ca8ae4c509b82cc (diff) | |
download | FreeBSD-src-3577ecc3c0bcf4603d67289d9af01df673a5a7a4.zip FreeBSD-src-3577ecc3c0bcf4603d67289d9af01df673a5a7a4.tar.gz |
Convert iic to use make_dev() rather than cdevsw_add(). This stops the
annoying 'iic is usurping iic's cdevsw' type messages. (Yes, there are
other ways to fix cdevsw_add(), but that is a doomed api)
Diffstat (limited to 'sys/dev/iicbus')
-rw-r--r-- | sys/dev/iicbus/iic.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/dev/iicbus/iic.c b/sys/dev/iicbus/iic.c index 3eb7af4..0482adf 100644 --- a/sys/dev/iicbus/iic.c +++ b/sys/dev/iicbus/iic.c @@ -130,7 +130,9 @@ iic_probe(device_t dev) static int iic_attach(device_t dev) { - cdevsw_add(&iic_cdevsw); /* XXX */ + make_dev(&iic_cdevsw, device_get_unit(dev), /* XXX cleanup */ + UID_ROOT, GID_WHEEL, + 0600, "iic%d", device_get_unit(dev)); return (0); } |