diff options
author | Jason Downs <downsj@cvs.openbsd.org> | 1998-07-09 05:37:22 +0000 |
---|---|---|
committer | Jason Downs <downsj@cvs.openbsd.org> | 1998-07-09 05:37:22 +0000 |
commit | acb8738e52532b92c0090e32144e2595f9a3f08b (patch) | |
tree | cb681e2edadb81ef1eee226d2aa8b8ef29a2c1d2 /sys/dev/isa/wdc.c | |
parent | 421fa4553e0a54a294d9a3f290caf2a4ac9f42f4 (diff) |
Don't unmap something that we didn't map...
Diffstat (limited to 'sys/dev/isa/wdc.c')
-rw-r--r-- | sys/dev/isa/wdc.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/sys/dev/isa/wdc.c b/sys/dev/isa/wdc.c index b47f31860e6..c4c109b1967 100644 --- a/sys/dev/isa/wdc.c +++ b/sys/dev/isa/wdc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: wdc.c,v 1.30 1998/07/07 19:15:31 deraadt Exp $ */ +/* $OpenBSD: wdc.c,v 1.31 1998/07/09 05:37:21 downsj Exp $ */ /* $NetBSD: wd.c,v 1.150 1996/05/12 23:54:03 mycroft Exp $ */ /* @@ -252,14 +252,11 @@ wdcprobe(parent, match, aux) ia->ia_iosize = 8; ia->ia_msize = 0; -#ifdef notyet - /* when we are ready for it... */ - bus_space_unmap(iot, ioh, 8); -#endif return 1; nomatch: - bus_space_unmap(iot, ioh, 8); + if (!IS_ISAPNP(parent)) + bus_space_unmap(iot, ioh, 8); return 0; } |