summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2015-05-24 15:25:35 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2015-05-24 15:25:35 +0000
commit5ff30facad5ee6df7df8c3c8097168a61ce0fd34 (patch)
treee88841f48ad91955320e11b6e013f8770d30931c /sys/dev
parente80c45e7b3dc92fa2c630f70e4092b2ac45fed5d (diff)
Initialize ipa_nirq in isascan(). Gets rid of spurious irq locators being
printed for isadma(4).
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/isa/isa.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/isa/isa.c b/sys/dev/isa/isa.c
index d9474f9471f..ee65a74721b 100644
--- a/sys/dev/isa/isa.c
+++ b/sys/dev/isa/isa.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: isa.c,v 1.44 2015/05/21 19:29:31 miod Exp $ */
+/* $OpenBSD: isa.c,v 1.45 2015/05/24 15:25:34 miod Exp $ */
/* $NetBSD: isa.c,v 1.85 1996/05/14 00:31:04 thorpej Exp $ */
/*
@@ -211,6 +211,7 @@ isascan(parent, match)
ia.ia_maddr = cf->cf_maddr;
ia.ia_msize = cf->cf_msize;
ia.ia_irq = cf->cf_irq == 2 ? 9 : cf->cf_irq;
+ ia.ipa_nirq = ia.ia_irq == IRQUNK ? 0 : 1;
ia.ia_drq = cf->cf_drq;
ia.ia_drq2 = cf->cf_drq2;
ia.ia_delaybah = sc->sc_delaybah;