diff options
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/ccd/ccd.c | 3 | ||||
-rw-r--r-- | sys/dev/vn/vn.c | 3 |
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); |