summaryrefslogtreecommitdiffstats
path: root/sys/dev
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>1999-11-07 10:01:17 +0000
committerphk <phk@FreeBSD.org>1999-11-07 10:01:17 +0000
commit316e3fdcc1f84d714e29623adffbd26e6827c597 (patch)
tree5c4c9a2689cb8df33d8b2f09afd872629719f445 /sys/dev
parentcbb740c394cd16bbefa3b761342be032d7c3821e (diff)
downloadFreeBSD-src-316e3fdcc1f84d714e29623adffbd26e6827c597.zip
FreeBSD-src-316e3fdcc1f84d714e29623adffbd26e6827c597.tar.gz
Remove the devsw magic from DEV_MODULE()
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/ccd/ccd.c3
-rw-r--r--sys/dev/vn/vn.c3
2 files changed, 4 insertions, 2 deletions
diff --git a/sys/dev/ccd/ccd.c b/sys/dev/ccd/ccd.c
index c4cc2bd..75ee082 100644
--- a/sys/dev/ccd/ccd.c
+++ b/sys/dev/ccd/ccd.c
@@ -322,6 +322,7 @@ ccdattach()
bzero(ccd_softc, num * sizeof(struct ccd_softc));
bzero(ccddevs, num * sizeof(struct ccddevice));
+ cdevsw_add(&ccd_cdevsw);
/* XXX: is this necessary? */
for (i = 0; i < numccd; ++i)
ccddevs[i].ccd_dk = -1;
@@ -351,7 +352,7 @@ ccd_modevent(mod, type, data)
return (error);
}
-DEV_MODULE(ccd, CDEV_MAJOR, BDEV_MAJOR, ccd_cdevsw, ccd_modevent, NULL);
+DEV_MODULE(ccd, ccd_modevent, NULL);
static int
ccdinit(ccd, cpaths, p)
diff --git a/sys/dev/vn/vn.c b/sys/dev/vn/vn.c
index dab0ca1..0730696 100644
--- a/sys/dev/vn/vn.c
+++ b/sys/dev/vn/vn.c
@@ -743,6 +743,7 @@ vn_modevent(module_t mod, int type, void *data)
switch (type) {
case MOD_LOAD:
+ cdevsw_add(&vn_cdevsw);
break;
case MOD_UNLOAD:
@@ -764,4 +765,4 @@ vn_modevent(module_t mod, int type, void *data)
return 0;
}
-DEV_MODULE(vn, CDEV_MAJOR, BDEV_MAJOR, vn_cdevsw, vn_modevent, 0);
+DEV_MODULE(vn, vn_modevent, 0);
OpenPOWER on IntegriCloud