From 3577ecc3c0bcf4603d67289d9af01df673a5a7a4 Mon Sep 17 00:00:00 2001 From: peter Date: Thu, 18 Nov 1999 05:43:32 +0000 Subject: 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) --- sys/dev/iicbus/iic.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'sys/dev/iicbus') 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); } -- cgit v1.1