mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 08:43:19 -04: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
1 changed files with 3 additions and 1 deletions
|
|
@ -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 a new issue