summaryrefslogtreecommitdiff
path: root/sys/arch/arm/xscale/i80321_i2c.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/arch/arm/xscale/i80321_i2c.c')
-rw-r--r--sys/arch/arm/xscale/i80321_i2c.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/arch/arm/xscale/i80321_i2c.c b/sys/arch/arm/xscale/i80321_i2c.c
index ffa3eff6a18..4b3121dcfd0 100644
--- a/sys/arch/arm/xscale/i80321_i2c.c
+++ b/sys/arch/arm/xscale/i80321_i2c.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: i80321_i2c.c,v 1.2 2006/07/10 15:39:56 drahn Exp $ */
+/* $OpenBSD: i80321_i2c.c,v 1.3 2009/03/27 16:02:41 oga Exp $ */
/* $NetBSD: i80321_i2c.c,v 1.2 2005/12/11 12:16:51 christos Exp $ */
/*
@@ -41,7 +41,7 @@
*/
#include <sys/param.h>
-#include <sys/lock.h>
+#include <sys/rwlock.h>
#include <sys/systm.h>
#include <sys/device.h>
#include <sys/kernel.h>
@@ -110,7 +110,7 @@ i80321_i2c_attach(struct device *parent, struct device *self, void *aux)
/* XXX Reset the I2C unit? */
- lockinit(&sc->sc_buslock, PRIBIO|PCATCH, "iopiiclk", 0, 0);
+ rw_init(&sc->sc_buslock, "iopiiclk");
/* XXX We don't currently use interrupts. Fix this some day. */
#if 0