summaryrefslogtreecommitdiff
path: root/sys/dev/isa/gscsio.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/isa/gscsio.c')
-rw-r--r--sys/dev/isa/gscsio.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/dev/isa/gscsio.c b/sys/dev/isa/gscsio.c
index 1a448892af6..d54f0131b4a 100644
--- a/sys/dev/isa/gscsio.c
+++ b/sys/dev/isa/gscsio.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: gscsio.c,v 1.1 2004/05/23 17:41:09 grange Exp $ */
+/* $OpenBSD: gscsio.c,v 1.2 2004/06/05 18:34:04 grange Exp $ */
/*
* Copyright (c) 2004 Alexander Yurchenko <grange@openbsd.org>
*
@@ -220,6 +220,8 @@ gscsio_attach(struct device *parent, struct device *self, void *aux)
if (sc->sc_ld_en[GSCSIO_LDN_ACB1]) {
sc->sc_acb[0].sc = sc;
sc->sc_acb[0].ioh = sc->sc_ld_ioh0[GSCSIO_LDN_ACB1];
+ lockinit(&sc->sc_acb[0].buslock, PRIBIO | PCATCH,
+ "iiclk", 0, 0);
gscsio_acb_init(&sc->sc_acb[0], &sc->sc_acb1_tag);
}
@@ -227,6 +229,8 @@ gscsio_attach(struct device *parent, struct device *self, void *aux)
if (sc->sc_ld_en[GSCSIO_LDN_ACB2]) {
sc->sc_acb[1].sc = sc;
sc->sc_acb[1].ioh = sc->sc_ld_ioh0[GSCSIO_LDN_ACB2];
+ lockinit(&sc->sc_acb[1].buslock, PRIBIO | PCATCH,
+ "iiclk", 0, 0);
gscsio_acb_init(&sc->sc_acb[1], &sc->sc_acb2_tag);
}
}