diff options
-rw-r--r-- | sys/dev/fdc/fdc.c | 3 | ||||
-rw-r--r-- | sys/isa/fd.c | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/sys/dev/fdc/fdc.c b/sys/dev/fdc/fdc.c index e63a75b..0d94930 100644 --- a/sys/dev/fdc/fdc.c +++ b/sys/dev/fdc/fdc.c @@ -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); /******************************************************************/ diff --git a/sys/isa/fd.c b/sys/isa/fd.c index e63a75b..0d94930 100644 --- a/sys/isa/fd.c +++ b/sys/isa/fd.c @@ -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); /******************************************************************/ |