diff --git a/sys/dev/smbus/smb.c b/sys/dev/smbus/smb.c index d02b8a0d4ae6..c4bd042012e1 100644 --- a/sys/dev/smbus/smb.c +++ b/sys/dev/smbus/smb.c @@ -131,7 +131,9 @@ smb_probe(device_t dev) static int smb_attach(device_t dev) { - cdevsw_add(&smb_cdevsw); + make_dev(&smb_cdevsw, device_get_unit(dev), /* XXX cleanup */ + UID_ROOT, GID_WHEEL, + 0600, "smb%d", device_get_unit(dev)); return (0); }