mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-04 05:58:57 +00:00
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:
parent
8de0675c61
commit
38703ed315
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=53329
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user