From 7ebaca3e5c6296eb2269e443a2ba69cb4c9cc792 Mon Sep 17 00:00:00 2001 From: Joel Sing Date: Sun, 25 Nov 2007 11:58:42 +0000 Subject: It helps if you initialise timeouts before you try using them... ok miod@ --- sys/arch/sgi/dev/mkbc.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'sys') 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, -- cgit v1.2.3