#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 ---------------------------------------------------- */
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;