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)
This commit is contained in:
Peter Wemm 1999-11-18 05:43:32 +00:00
parent 8de0675c61
commit 38703ed315
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=53329

View File

@ -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);
}