linux 2.6.16.38 w/ vs2.0.3-rc1
[linux-2.6.git] / include / linux / i2c.h
index 1635ee2..63f1d63 100644 (file)
@@ -32,7 +32,7 @@
 #include <linux/mod_devicetable.h>
 #include <linux/device.h>      /* for struct device */
 #include <linux/sched.h>       /* for completion */
-#include <linux/mutex.h>
+#include <asm/semaphore.h>
 
 /* --- For i2c-isa ---------------------------------------------------- */
 
@@ -225,8 +225,8 @@ struct i2c_adapter {
        int (*client_unregister)(struct i2c_client *);
 
        /* data fields that are valid for all devices   */
-       struct mutex bus_lock;
-       struct mutex clist_lock;
+       struct semaphore bus_lock;
+       struct semaphore clist_lock;
 
        int timeout;
        int retries;