From 6c85184e2d64ce56266c126966cbd32c547ae2f6 Mon Sep 17 00:00:00 2001 From: peter Date: Mon, 8 Nov 1999 07:32:06 +0000 Subject: Use cdevsw_add() (temporarily) to avoid DEV_DRIVER_MODULE(), since the make_dev()'s that are there are not enough. --- sys/dev/fdc/fdc.c | 3 ++- 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); /******************************************************************/ -- cgit v1.1