summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys/dev/isa/lpt_isa.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/sys/dev/isa/lpt_isa.c b/sys/dev/isa/lpt_isa.c
index 72dcf410196..fcd4ecdd9ac 100644
--- a/sys/dev/isa/lpt_isa.c
+++ b/sys/dev/isa/lpt_isa.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: lpt_isa.c,v 1.9 1999/01/07 15:57:43 niklas Exp $ */
+/* $OpenBSD: lpt_isa.c,v 1.10 1999/01/30 01:41:48 imp Exp $ */
/*
* Copyright (c) 1993, 1994 Charles Hannum.
@@ -97,7 +97,9 @@ lpt_isa_probe(parent, match, aux)
struct device *parent;
void *match, *aux;
{
+#if !defined(__NO_ISA_INTR_CHECK)
struct isa_softc *sc = (struct isa_softc *)parent;
+#endif
struct isa_attach_args *ia = aux;
bus_space_tag_t iot;
bus_space_handle_t ioh;
@@ -152,10 +154,11 @@ lpt_isa_probe(parent, match, aux)
* Check if the specified IRQ is available. If not revert to
* polled mode.
*/
+#if !defined(__NO_ISA_INTR_CHECK)
if (ia->ia_irq != IRQUNK &&
!isa_intr_check(sc->sc_ic, ia->ia_irq, IST_EDGE))
ia->ia_irq = IRQUNK;
-
+#endif
ia->ia_msize = 0;
ia->ia_iosize = iosz;