summaryrefslogtreecommitdiff
path: root/sys/dev/isa/isa.c
diff options
context:
space:
mode:
authorJason Downs <downsj@cvs.openbsd.org>1997-12-25 13:28:46 +0000
committerJason Downs <downsj@cvs.openbsd.org>1997-12-25 13:28:46 +0000
commitcfb498db5d91c8c53bec91157416e97cc4925326 (patch)
treeed1d287b79da93d5098a05d77b6c1141deca5e80 /sys/dev/isa/isa.c
parentac2998ea4db9beae89bf098b3162fe33e9e83574 (diff)
fix DRQUNK case
Diffstat (limited to 'sys/dev/isa/isa.c')
-rw-r--r--sys/dev/isa/isa.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/sys/dev/isa/isa.c b/sys/dev/isa/isa.c
index 75b7ac34e9c..d71256df9d7 100644
--- a/sys/dev/isa/isa.c
+++ b/sys/dev/isa/isa.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: isa.c,v 1.25 1997/12/25 13:18:07 downsj Exp $ */
+/* $OpenBSD: isa.c,v 1.26 1997/12/25 13:28:45 downsj Exp $ */
/* $NetBSD: isa.c,v 1.85 1996/05/14 00:31:04 thorpej Exp $ */
/*
@@ -185,7 +185,8 @@ isascan(parent, match)
dev = config_make_softc(parent, cf);
ia2 = ia;
- isa_drq_alloc(sc, ia.ia_drq);
+ if (ia.ia_drq != DRQUNK)
+ isa_drq_alloc(sc, ia.ia_drq);
}
free(dev, M_DEVBUF);
return;
@@ -194,7 +195,8 @@ isascan(parent, match)
if ((*cf->cf_attach->ca_match)(parent, dev, &ia) > 0) {
config_attach(parent, dev, &ia, isaprint);
- isa_drq_alloc(sc, ia.ia_drq);
+ if (ia.ia_drq != DRQUNK)
+ isa_drq_alloc(sc, ia.ia_drq);
} else
free(dev, M_DEVBUF);
}