diff options
author | sos <sos@FreeBSD.org> | 2000-03-10 22:10:34 +0000 |
---|---|---|
committer | sos <sos@FreeBSD.org> | 2000-03-10 22:10:34 +0000 |
commit | d3a1fb72786afe772d004a4220a0251de978f7f8 (patch) | |
tree | 47c316f67157812bf84903ea47744aaec391d916 /sys/dev | |
parent | 35eef19e2795f46529ed269448bcd81a4445ba46 (diff) | |
download | FreeBSD-src-d3a1fb72786afe772d004a4220a0251de978f7f8.zip FreeBSD-src-d3a1fb72786afe772d004a4220a0251de978f7f8.tar.gz |
Cosmetics..
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/ata/atapi-fd.c | 4 | ||||
-rw-r--r-- | sys/dev/ata/atapi-tape.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/ata/atapi-fd.c b/sys/dev/ata/atapi-fd.c index ea15241..3683854 100644 --- a/sys/dev/ata/atapi-fd.c +++ b/sys/dev/ata/atapi-fd.c @@ -97,8 +97,6 @@ afdattach(struct atapi_softc *atp) bufq_init(&fdp->buf_queue); fdp->atp = atp; fdp->lun = ata_get_lun(&afd_lun_map); - fdp->atp->flags |= ATAPI_F_MEDIA_CHANGED; - fdp->atp->driver = fdp; if (afd_sense(fdp)) { free(fdp, M_AFD); @@ -117,6 +115,8 @@ afdattach(struct atapi_softc *atp) dev->si_drv1 = fdp; dev->si_iosize_max = 252 * DEV_BSIZE; fdp->dev = dev; + fdp->atp->flags |= ATAPI_F_MEDIA_CHANGED; + fdp->atp->driver = fdp; if ((fdp->atp->devname = malloc(8, M_AFD, M_NOWAIT))) sprintf(fdp->atp->devname, "afd%d", fdp->lun); afd_describe(fdp); diff --git a/sys/dev/ata/atapi-tape.c b/sys/dev/ata/atapi-tape.c index 29c159f..e3abcf0 100644 --- a/sys/dev/ata/atapi-tape.c +++ b/sys/dev/ata/atapi-tape.c @@ -112,8 +112,6 @@ astattach(struct atapi_softc *atp) free(stp, M_AST); return -1; } - stp->atp->flags |= ATAPI_F_MEDIA_CHANGED; - stp->atp->driver = stp; if (!strcmp(ATA_PARAM(stp->atp->controller, stp->atp->unit)->model, "OnStream DI-30")) { @@ -145,6 +143,8 @@ astattach(struct atapi_softc *atp) dev->si_drv1 = stp; dev->si_iosize_max = 252 * DEV_BSIZE; stp->dev2 = dev; + stp->atp->flags |= ATAPI_F_MEDIA_CHANGED; + stp->atp->driver = stp; if ((stp->atp->devname = malloc(8, M_AST, M_NOWAIT))) sprintf(stp->atp->devname, "ast%d", stp->lun); ast_describe(stp); |