From 38703ed315b1b5a1070675f024d4cf1fb5b9372e Mon Sep 17 00:00:00 2001 From: Peter Wemm Date: Thu, 18 Nov 1999 05:43:32 +0000 Subject: [PATCH] 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(-) diff --git a/sys/dev/iicbus/iic.c b/sys/dev/iicbus/iic.c index 3eb7af4e914..0482adff181 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); }