summaryrefslogtreecommitdiff
path: root/sys/dev/pci
diff options
context:
space:
mode:
authorCan Erkin Acar <canacar@cvs.openbsd.org>2008-05-12 06:59:20 +0000
committerCan Erkin Acar <canacar@cvs.openbsd.org>2008-05-12 06:59:20 +0000
commitf7681887b96b09ede50142fc2c8e9932ccf965e2 (patch)
tree46b1e2a7c0d9e7ee072b96c9482ee1b55d023a82 /sys/dev/pci
parent9d3303d7a51b7d78b5c2e9057307342c9820921c (diff)
Pass correct argument to timeout_set so that the timeout can break the
loop as intended. ok dlg@
Diffstat (limited to 'sys/dev/pci')
-rw-r--r--sys/dev/pci/if_tht.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pci/if_tht.c b/sys/dev/pci/if_tht.c
index 05708f68738..aada17fe84a 100644
--- a/sys/dev/pci/if_tht.c
+++ b/sys/dev/pci/if_tht.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_tht.c,v 1.114 2008/04/11 11:34:00 thib Exp $ */
+/* $OpenBSD: if_tht.c,v 1.115 2008/05/12 06:59:19 canacar Exp $ */
/*
* Copyright (c) 2007 David Gwynne <dlg@openbsd.org>
@@ -1736,7 +1736,7 @@ tht_fw_load(struct tht_softc *sc)
buf += wrlen;
}
- timeout_set(&ticker, tht_fw_tick, &ticker);
+ timeout_set(&ticker, tht_fw_tick, &ok);
timeout_add(&ticker, 2*hz);
while (ok) {
if (tht_read(sc, THT_REG_INIT_STATUS) != 0) {