summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>1997-10-07 05:33:26 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>1997-10-07 05:33:26 +0000
commitb73ca43fb934326c6d9aaab54b75e37e159dae6e (patch)
tree4dd4a7a4bf4c60aaf19911b577c7499b756d1caf /sys
parentdc1e5b6c9eb00629d09ea66dd687509468713606 (diff)
should work
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/isa/lpt_isa.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/isa/lpt_isa.c b/sys/dev/isa/lpt_isa.c
index 398380ed306..c2e6fe0a73d 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.5 1997/10/07 04:47:32 deraadt Exp $ */
+/* $OpenBSD: lpt_isa.c,v 1.6 1997/10/07 05:33:25 mickey Exp $ */
/*
* Copyright (c) 1993, 1994 Charles Hannum.
@@ -165,7 +165,6 @@ lpt_isa_attach(parent, self, aux)
struct isa_attach_args *ia = aux;
bus_space_tag_t iot;
bus_space_handle_t ioh;
- int iosz;
if (ia->ia_irq != IRQUNK)
printf("\n");
@@ -177,8 +176,9 @@ lpt_isa_attach(parent, self, aux)
sc->sc_state = 0;
iot = sc->sc_iot = ia->ia_iot;
- iosz = (ia->ia_iosize == -1) ? LPT_NPORTS : ia->ia_iosize;
- if (bus_space_map(iot, ia->ia_iobase, iosz, 0, &ioh))
+ if (ia->ia_iosize == -1)
+ ia->ia_iosize = LPT_NPORTS;
+ if (bus_space_map(iot, ia->ia_iobase, ia->ia_iosize, 0, &ioh))
panic("lpt_isa_attach: couldn't map I/O ports");
sc->sc_ioh = ioh;