From: miod Date: Sun, 24 May 2015 15:25:34 +0000 (+0000) Subject: Initialize ipa_nirq in isascan(). Gets rid of spurious irq locators being X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=60dbe9c75a7010593f778888cf1f110e740994f8;p=openbsd Initialize ipa_nirq in isascan(). Gets rid of spurious irq locators being printed for isadma(4). --- 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;