aboutsummaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/ata/ata-disk.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/sys/dev/ata/ata-disk.c b/sys/dev/ata/ata-disk.c
index 9ded0c3f3a9e8..a11f8bbdbfb86 100644
--- a/sys/dev/ata/ata-disk.c
+++ b/sys/dev/ata/ata-disk.c
@@ -81,7 +81,6 @@ static void ad_attach(void *);
static int32_t ad_getparam(struct ad_softc *);
static void ad_start(struct ad_softc *);
static void ad_timeout(struct ad_request *);
-static void ad_sleep(struct ad_softc *, int8_t *);
static int8_t ad_version(u_int16_t);
static void ad_drvinit(void);
@@ -291,7 +290,6 @@ adopen(dev_t dev, int32_t flags, int32_t fmt, struct proc *p)
dl->d_ncylinders = adp->cylinders;
dl->d_secpercyl = adp->sectors * adp->heads;
dl->d_secperunit = adp->total_secs;
- ad_sleep(adp, "adop2");
return 0;
}
@@ -652,17 +650,6 @@ ad_timeout(struct ad_request *request)
ata_reinit(adp->controller);
}
-static void
-ad_sleep(struct ad_softc *adp, int8_t *mesg)
-{
- int32_t s;
-
- s = splbio();
- while (adp->controller->active != ATA_IDLE)
- tsleep((caddr_t)&adp->controller->active, PZERO - 1, mesg, 1);
- splx(s);
-}
-
static int8_t
ad_version(u_int16_t version)
{