diff options
author | Michael Shalayeff <mickey@cvs.openbsd.org> | 1997-10-07 05:36:08 +0000 |
---|---|---|
committer | Michael Shalayeff <mickey@cvs.openbsd.org> | 1997-10-07 05:36:08 +0000 |
commit | c9dbcc023866809e2ce4fe21154898ca315616ec (patch) | |
tree | 66ee6473442c51d8d3ed3115b6c9a0ed4615d4c3 | |
parent | 0fe1400b8f96e98799a37b7886afd9b2afc5c681 (diff) |
no, man! *probe sets iosize, according to the isa.c
-rw-r--r-- | sys/dev/isa/lpt_isa.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/dev/isa/lpt_isa.c b/sys/dev/isa/lpt_isa.c index c2e6fe0a73d..4a2f7342178 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.6 1997/10/07 05:33:25 mickey Exp $ */ +/* $OpenBSD: lpt_isa.c,v 1.7 1997/10/07 05:36:07 mickey Exp $ */ /* * Copyright (c) 1993, 1994 Charles Hannum. @@ -148,6 +148,7 @@ lpt_isa_probe(parent, match, aux) bus_space_write_1(iot, ioh, lpt_control, 0); ia->ia_msize = 0; + ia->ia_iosize = iosz; rv = 1; @@ -176,8 +177,6 @@ lpt_isa_attach(parent, self, aux) sc->sc_state = 0; iot = sc->sc_iot = ia->ia_iot; - 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; |