summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
authorJoel Sing <jsing@cvs.openbsd.org>2007-11-25 11:58:42 +0000
committerJoel Sing <jsing@cvs.openbsd.org>2007-11-25 11:58:42 +0000
commit7ebaca3e5c6296eb2269e443a2ba69cb4c9cc792 (patch)
tree4957a10d57d5f97f7ea69b4ee6f12fa8cae90534 /sys/arch
parent8ab20164cc14e36fbb0eaf9938b8af63a160f762 (diff)
It helps if you initialise timeouts before you try using them...
ok miod@
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/sgi/dev/mkbc.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/arch/sgi/dev/mkbc.c b/sys/arch/sgi/dev/mkbc.c
index 53400011f31..58f9d0f7bb9 100644
--- a/sys/arch/sgi/dev/mkbc.c
+++ b/sys/arch/sgi/dev/mkbc.c
@@ -25,7 +25,7 @@
/*
* Derived from sys/dev/ic/pckbc.c under the following terms:
- * $OpenBSD: mkbc.c,v 1.1 2007/10/18 18:59:29 jsing Exp $
+ * $OpenBSD: mkbc.c,v 1.2 2007/11/25 11:58:41 jsing Exp $
* $NetBSD: pckbc.c,v 1.5 2000/06/09 04:58:35 soda Exp $ */
/*
@@ -273,6 +273,8 @@ mkbc_attach(struct device *parent, struct device *self, void *aux)
t->t_sc = (struct pckbc_softc *)msc;
sc->id = t;
+ timeout_set(&t->t_cleanup, mkbc_cleanup, t);
+
/* Establish interrupt handler. */
msc->sc_irq = ca->ca_intr;
rv = macebus_intr_establish(NULL, msc->sc_irq, IST_EDGE,