summaryrefslogtreecommitdiff
path: root/sys/dev/ic/wdc.c
diff options
context:
space:
mode:
authorArtur Grabowski <art@cvs.openbsd.org>2001-08-23 13:23:29 +0000
committerArtur Grabowski <art@cvs.openbsd.org>2001-08-23 13:23:29 +0000
commit9bdb92667c780c2c34eaa23535f11bb177e7f554 (patch)
treefe82155d69b9d79ffd14ca241ee151b07f2a5f44 /sys/dev/ic/wdc.c
parentd6d6ac8d7e227604e044673f64e7969c7927095f (diff)
initialize the channel timeout earlier.
Diffstat (limited to 'sys/dev/ic/wdc.c')
-rw-r--r--sys/dev/ic/wdc.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/dev/ic/wdc.c b/sys/dev/ic/wdc.c
index e3e65e2f622..c3f6d2917cd 100644
--- a/sys/dev/ic/wdc.c
+++ b/sys/dev/ic/wdc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: wdc.c,v 1.41 2001/07/31 07:07:00 csapuntz Exp $ */
+/* $OpenBSD: wdc.c,v 1.42 2001/08/23 13:23:28 art Exp $ */
/* $NetBSD: wdc.c,v 1.68 1999/06/23 19:00:17 bouyer Exp $ */
@@ -619,6 +619,8 @@ wdcattach(chp)
if (!cold)
at_poll = AT_WAIT;
+ timeout_set(&chp->ch_timo, wdctimeout, chp);
+
#ifndef __OpenBSD__
if ((error = wdc_addref(chp)) != 0) {
printf("%s: unable to enable controller\n",
@@ -661,7 +663,6 @@ wdcattach(chp)
inited++;
}
TAILQ_INIT(&chp->ch_queue->sc_xfer);
- timeout_set(&chp->ch_timo, wdctimeout, chp);
for (i = 0; i < 2; i++) {
struct ata_drive_datas *drvp = &chp->ch_drive[i];