summaryrefslogtreecommitdiff
path: root/sys/arch/sun2/dev
diff options
context:
space:
mode:
authorad <ad@NetBSD.org>2007-11-09 00:05:04 +0000
committerad <ad@NetBSD.org>2007-11-09 00:05:04 +0000
commitf2c57d8566dfe44dc71609da2591b3be358d95fa (patch)
treeacf19b4703b177b39a53936d0bf6789ad4bc54a0 /sys/arch/sun2/dev
parent43385f0ea136557fe8fe105181b76569fb795466 (diff)
Call zs_lock_init() to set up the chanstate's lock.
Diffstat (limited to 'sys/arch/sun2/dev')
-rw-r--r--sys/arch/sun2/dev/zs.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/arch/sun2/dev/zs.c b/sys/arch/sun2/dev/zs.c
index 3bb5b2e092f..08edd536943 100644
--- a/sys/arch/sun2/dev/zs.c
+++ b/sys/arch/sun2/dev/zs.c
@@ -1,4 +1,4 @@
-/* $NetBSD: zs.c,v 1.14 2007/03/11 06:34:53 tsutsui Exp $ */
+/* $NetBSD: zs.c,v 1.15 2007/11/09 00:05:06 ad Exp $ */
/*-
* Copyright (c) 1996 The NetBSD Foundation, Inc.
@@ -45,7 +45,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: zs.c,v 1.14 2007/03/11 06:34:53 tsutsui Exp $");
+__KERNEL_RCSID(0, "$NetBSD: zs.c,v 1.15 2007/11/09 00:05:06 ad Exp $");
#include "opt_ddb.h"
#include "opt_kgdb.h"
@@ -178,7 +178,7 @@ zs_attach(struct zsc_softc *zsc, struct zsdevice *zsd, int pri)
cs = &zsc->zsc_cs_store[channel];
zsc->zsc_cs[channel] = cs;
- simple_lock_init(&cs->cs_lock);
+ zs_lock_init(cs);
cs->cs_channel = channel;
cs->cs_private = NULL;
cs->cs_ops = &zsops_null;