mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-29 21:26:51 +00:00
Use cdevsw_add() (temporarily) to avoid DEV_DRIVER_MODULE(), since the
make_dev()'s that are there are not enough.
This commit is contained in:
parent
1faa5a84a8
commit
475ad603bb
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=52998
|
@ -941,6 +941,7 @@ fd_attach(device_t dev)
|
|||
|
||||
fd = device_get_softc(dev);
|
||||
|
||||
cdevsw_add(&fd_cdevsw); /* XXX */
|
||||
make_dev(&fd_cdevsw, (fd->fdu << 6),
|
||||
UID_ROOT, GID_OPERATOR, 0640, "rfd%d", fd->fdu);
|
||||
|
||||
|
@ -976,7 +977,7 @@ static driver_t fd_driver = {
|
|||
sizeof(struct fd_data)
|
||||
};
|
||||
|
||||
DEV_DRIVER_MODULE(fd, fdc, fd_driver, fd_devclass, fd_cdevsw, 0, 0);
|
||||
DRIVER_MODULE(fd, fdc, fd_driver, fd_devclass, 0, 0);
|
||||
|
||||
/******************************************************************/
|
||||
|
||||
|
|
|
@ -941,6 +941,7 @@ fd_attach(device_t dev)
|
|||
|
||||
fd = device_get_softc(dev);
|
||||
|
||||
cdevsw_add(&fd_cdevsw); /* XXX */
|
||||
make_dev(&fd_cdevsw, (fd->fdu << 6),
|
||||
UID_ROOT, GID_OPERATOR, 0640, "rfd%d", fd->fdu);
|
||||
|
||||
|
@ -976,7 +977,7 @@ static driver_t fd_driver = {
|
|||
sizeof(struct fd_data)
|
||||
};
|
||||
|
||||
DEV_DRIVER_MODULE(fd, fdc, fd_driver, fd_devclass, fd_cdevsw, 0, 0);
|
||||
DRIVER_MODULE(fd, fdc, fd_driver, fd_devclass, 0, 0);
|
||||
|
||||
/******************************************************************/
|
||||
|
||||
|
|
Loading…
Reference in a new issue