diff options
author | imp <imp@cvs.openbsd.org> | 1999-01-30 01:41:49 +0000 |
---|---|---|
committer | imp <imp@cvs.openbsd.org> | 1999-01-30 01:41:49 +0000 |
commit | e61ca35bb2e7988d48645ae5b9fa7d546c8a42db (patch) | |
tree | 6a5c4e41524a330329f9963927c2c425916456f9 /sys | |
parent | 9fd17607ee9aca36de862c448a6c22177b84d215 (diff) |
Make this build on architectures that define __NO_ISA_INTR_CHECK.
This is a hack, but so is __NO_ISA_INTR_CHECK.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/isa/lpt_isa.c | 7 |
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; |