Cosmetics..

This commit is contained in:
sos 2000-03-10 22:10:34 +00:00
parent 988690c1ca
commit 04eeb3d95f
2 changed files with 4 additions and 4 deletions

View File

@ -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);

View File

@ -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);