summaryrefslogtreecommitdiffstats
path: root/sys/geom/geom_ccd.c
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/geom/geom_ccd.c
parentcbb740c394cd16bbefa3b761342be032d7c3821e (diff)
downloadFreeBSD-src-316e3fdcc1f84d714e29623adffbd26e6827c597.zip
FreeBSD-src-316e3fdcc1f84d714e29623adffbd26e6827c597.tar.gz
Remove the devsw magic from DEV_MODULE()
Diffstat (limited to 'sys/geom/geom_ccd.c')
-rw-r--r--sys/geom/geom_ccd.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/geom/geom_ccd.c b/sys/geom/geom_ccd.c
index c4cc2bd..75ee082 100644
--- a/sys/geom/geom_ccd.c
+++ b/sys/geom/geom_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)
OpenPOWER on IntegriCloud