diff options
| author | Poul-Henning Kamp <phk@FreeBSD.org> | 2004-08-08 07:57:53 +0000 |
|---|---|---|
| committer | Poul-Henning Kamp <phk@FreeBSD.org> | 2004-08-08 07:57:53 +0000 |
| commit | 5721c9c76a4ab8ff2d7f9d6a9811d8f647b7d3b6 (patch) | |
| tree | d9423ca6b8d093758129ff8a20dd92bfe60b75d8 /sys/dev/ata/atapi-cd.c | |
| parent | 7acae2155e4465929338b41204c560b5f3702578 (diff) | |
Notes
Diffstat (limited to 'sys/dev/ata/atapi-cd.c')
| -rw-r--r-- | sys/dev/ata/atapi-cd.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/dev/ata/atapi-cd.c b/sys/dev/ata/atapi-cd.c index 7722a1b91ea9..bc7a0db0252f 100644 --- a/sys/dev/ata/atapi-cd.c +++ b/sys/dev/ata/atapi-cd.c @@ -98,6 +98,10 @@ static u_int32_t acd_lun_map = 0; static MALLOC_DEFINE(M_ACD, "ACD driver", "ATAPI CD driver buffers"); static struct g_class acd_class = { .name = "ACD", + .version = G_VERSION, + .access = acd_geom_access, + .ioctl = acd_geom_ioctl, + .start = acd_geom_start, }; DECLARE_GEOM_CLASS(acd_class, acd); @@ -249,9 +253,6 @@ acd_geom_create(void *arg, int flag) cdp = arg; g_topology_assert(); gp = g_new_geomf(&acd_class, "acd%d", cdp->lun); - gp->access = acd_geom_access; - gp->ioctl = acd_geom_ioctl; - gp->start = acd_geom_start; gp->softc = cdp; cdp->gp = gp; pp = g_new_providerf(gp, "acd%d", cdp->lun); |
