Use (temporarily) cdevsw_add() so we can change from DEV_DRIVER_MODULE()
to DRIVER_MODULE().
This commit is contained in:
parent
475ad603bb
commit
c6b92dec5e
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=52999
@ -131,6 +131,7 @@ smb_probe(device_t dev)
|
||||
static int
|
||||
smb_attach(device_t dev)
|
||||
{
|
||||
cdevsw_add(&smb_cdevsw);
|
||||
return (0);
|
||||
}
|
||||
|
||||
@ -267,4 +268,4 @@ smbioctl(dev_t dev, u_long cmd, caddr_t data, int flags, struct proc *p)
|
||||
return (error);
|
||||
}
|
||||
|
||||
DEV_DRIVER_MODULE(smb, smbus, smb_driver, smb_devclass, smb_cdevsw, 0, 0);
|
||||
DRIVER_MODULE(smb, smbus, smb_driver, smb_devclass, 0, 0);
|
||||
|
Loading…
Reference in New Issue
Block a user