Convert smb to use make_dev() rather than cdevsw_add(). This stops the
annoying 'smb is usurping smb'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
880a5dca8d
commit
c7893b50c8
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user