summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>1999-11-08 07:46:28 +0000
committerpeter <peter@FreeBSD.org>1999-11-08 07:46:28 +0000
commita323a1a83c3a8736ad4566d14864f140ea137558 (patch)
tree802c7c67abd9e77a5928263a1908f3c81a42d0e0 /sys
parenta253f72fce91086bc61795b6c936aec2cfc42323 (diff)
downloadFreeBSD-src-a323a1a83c3a8736ad4566d14864f140ea137558.zip
FreeBSD-src-a323a1a83c3a8736ad4566d14864f140ea137558.tar.gz
Use cdevsw_add() until the rest of the devices are created with make_dev()
and change from DEV_DRIVER_MODULE() to DRIVER_MODULE().
Diffstat (limited to 'sys')
-rw-r--r--sys/pc98/cbus/fdc.c3
-rw-r--r--sys/pc98/pc98/fd.c3
2 files changed, 4 insertions, 2 deletions
diff --git a/sys/pc98/cbus/fdc.c b/sys/pc98/cbus/fdc.c
index 8c00482..38ed27c 100644
--- a/sys/pc98/cbus/fdc.c
+++ b/sys/pc98/cbus/fdc.c
@@ -1214,6 +1214,7 @@ fd_attach(device_t dev)
fd = device_get_softc(dev);
+ cdevsw_add(&fd_cdevsw); /* XXX fill in devices */
make_dev(&fd_cdevsw, (fd->fdu << 6),
UID_ROOT, GID_OPERATOR, 0640, "rfd%d", fd->fdu);
@@ -1249,7 +1250,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/pc98/pc98/fd.c b/sys/pc98/pc98/fd.c
index 8c00482..38ed27c 100644
--- a/sys/pc98/pc98/fd.c
+++ b/sys/pc98/pc98/fd.c
@@ -1214,6 +1214,7 @@ fd_attach(device_t dev)
fd = device_get_softc(dev);
+ cdevsw_add(&fd_cdevsw); /* XXX fill in devices */
make_dev(&fd_cdevsw, (fd->fdu << 6),
UID_ROOT, GID_OPERATOR, 0640, "rfd%d", fd->fdu);
@@ -1249,7 +1250,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);
/******************************************************************/
OpenPOWER on IntegriCloud