summaryrefslogtreecommitdiff
path: root/sys/dev/isa
diff options
context:
space:
mode:
authorAlexander Yurchenko <grange@cvs.openbsd.org>2004-06-05 18:34:05 +0000
committerAlexander Yurchenko <grange@cvs.openbsd.org>2004-06-05 18:34:05 +0000
commite4576a1b29dca52879479051dc3a1ab4b1f17ea5 (patch)
tree4b6493ed6f5d3e14abb6d05db23fbce9a8a51221 /sys/dev/isa
parentb38bda89676c2c4272f9b815d7094c201dda8e32 (diff)
Missing lockinit().
Diffstat (limited to 'sys/dev/isa')
-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);
}
}