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
@ -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…
x
Reference in New Issue
Block a user