summaryrefslogtreecommitdiffstats
path: root/sys/isa
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>1999-11-08 07:32:06 +0000
committerpeter <peter@FreeBSD.org>1999-11-08 07:32:06 +0000
commit6c85184e2d64ce56266c126966cbd32c547ae2f6 (patch)
tree525ddf88f2b3b1ab62dc8c15cee0f14ed989a678 /sys/isa
parent0838268996c74e89d2ef50a7dd47f9667678d233 (diff)
downloadFreeBSD-src-6c85184e2d64ce56266c126966cbd32c547ae2f6.zip
FreeBSD-src-6c85184e2d64ce56266c126966cbd32c547ae2f6.tar.gz
Use cdevsw_add() (temporarily) to avoid DEV_DRIVER_MODULE(), since the
make_dev()'s that are there are not enough.
Diffstat (limited to 'sys/isa')
-rw-r--r--sys/isa/fd.c3
1 files changed, 2 insertions, 1 deletions
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);
/******************************************************************/
OpenPOWER on IntegriCloud