diff options
author | phk <phk@FreeBSD.org> | 2004-08-08 06:49:07 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2004-08-08 06:49:07 +0000 |
commit | 8a11f1b4a6e444c06beac9b61cd820cf6b82516f (patch) | |
tree | 93b8d93d433b81dc0f847a70e6344dafaeccf6d8 /sys/geom/geom_dev.c | |
parent | cb84366718580d5c3c1cdea1706a0c06eea5d876 (diff) | |
download | FreeBSD-src-8a11f1b4a6e444c06beac9b61cd820cf6b82516f.zip FreeBSD-src-8a11f1b4a6e444c06beac9b61cd820cf6b82516f.tar.gz |
Use default method initialization on geoms.
Diffstat (limited to 'sys/geom/geom_dev.c')
-rw-r--r-- | sys/geom/geom_dev.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/geom/geom_dev.c b/sys/geom/geom_dev.c index baaf191..9cd9e81 100644 --- a/sys/geom/geom_dev.c +++ b/sys/geom/geom_dev.c @@ -77,6 +77,7 @@ static g_orphan_t g_dev_orphan; static struct g_class g_dev_class = { .name = "DEV", .taste = g_dev_taste, + .orphan = g_dev_orphan, }; void @@ -121,7 +122,6 @@ g_dev_taste(struct g_class *mp, struct g_provider *pp, int insist __unused) if (cp->geom->class == mp) return (NULL); gp = g_new_geomf(mp, pp->name); - gp->orphan = g_dev_orphan; cp = g_new_consumer(gp); error = g_attach(cp, pp); KASSERT(error == 0, |