summaryrefslogtreecommitdiffstats
path: root/sys/geom/geom_ccd.c
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2004-08-08 06:49:07 +0000
committerphk <phk@FreeBSD.org>2004-08-08 06:49:07 +0000
commit8a11f1b4a6e444c06beac9b61cd820cf6b82516f (patch)
tree93b8d93d433b81dc0f847a70e6344dafaeccf6d8 /sys/geom/geom_ccd.c
parentcb84366718580d5c3c1cdea1706a0c06eea5d876 (diff)
downloadFreeBSD-src-8a11f1b4a6e444c06beac9b61cd820cf6b82516f.zip
FreeBSD-src-8a11f1b4a6e444c06beac9b61cd820cf6b82516f.tar.gz
Use default method initialization on geoms.
Diffstat (limited to 'sys/geom/geom_ccd.c')
-rw-r--r--sys/geom/geom_ccd.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/geom/geom_ccd.c b/sys/geom/geom_ccd.c
index 7ec3d2e..586fd74 100644
--- a/sys/geom/geom_ccd.c
+++ b/sys/geom/geom_ccd.c
@@ -718,9 +718,6 @@ g_ccd_create(struct gctl_req *req, struct g_class *mp)
}
gp = g_new_geomf(mp, "ccd%d", *unit);
- gp->start = g_ccd_start;
- gp->orphan = g_ccd_orphan;
- gp->access = g_ccd_access;
sc = g_malloc(sizeof *sc, M_WAITOK | M_ZERO);
gp->softc = sc;
sc->sc_ndisks = *nprovider;
@@ -863,6 +860,9 @@ static struct g_class g_ccd_class = {
.name = "CCD",
.ctlreq = g_ccd_config,
.destroy_geom = g_ccd_destroy_geom,
+ .start = g_ccd_start,
+ .orphan = g_ccd_orphan,
+ .access = g_ccd_access,
};
DECLARE_GEOM_CLASS(g_ccd_class, g_ccd);
OpenPOWER on IntegriCloud