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:
Peter Wemm 1999-11-08 07:32:06 +00:00
parent 1faa5a84a8
commit 475ad603bb
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=52998
2 changed files with 4 additions and 2 deletions

View file

@ -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);
/******************************************************************/

View file

@ -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);
/******************************************************************/