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:
Peter Wemm 1999-11-18 05:44:56 +00:00
parent 38703ed315
commit 71718a6a22
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=53330

View File

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