diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2005-01-15 19:48:16 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2005-01-15 19:48:16 +0000 |
commit | af175695249b2a691321e0631e7f688abb2f19ef (patch) | |
tree | 7e7a82e5b895fc0eacef52e089deb5fe5a18d6b4 /sys/dev/hil | |
parent | 50beee9847a703f9bb855df10cbe4ce9acf78823 (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/dev/hil')
-rw-r--r-- | sys/dev/hil/hil.c | 6 |
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; } /* |