summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2005-01-15 19:48:16 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2005-01-15 19:48:16 +0000
commitaf175695249b2a691321e0631e7f688abb2f19ef (patch)
tree7e7a82e5b895fc0eacef52e089deb5fe5a18d6b4 /sys
parent50beee9847a703f9bb855df10cbe4ce9acf78823 (diff)
If the loop is empty when we probe it, enable the interrupt anyways, so that
we can react on post-boot device plugs.
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/hil/hil.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/dev/hil/hil.c b/sys/dev/hil/hil.c
index e794795c6be..e8122414211 100644
--- a/sys/dev/hil/hil.c
+++ b/sys/dev/hil/hil.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: hil.c,v 1.16 2005/01/11 00:11:05 miod Exp $ */
+/* $OpenBSD: hil.c,v 1.17 2005/01/15 19:48:15 miod Exp $ */
/*
* Copyright (c) 2003, 2004, Miodrag Vallat.
* All rights reserved.
@@ -237,7 +237,9 @@ hil_attach_deferred(void *v)
if (tries == 0 || (db & LPS_CONFFAIL)) {
printf("%s: no devices\n", sc->sc_dev.dv_xname);
- return;
+ sc->sc_pending = 0;
+ if (tries == 0)
+ return;
}
/*