mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-11-18 19:30:54 +00:00
Drop a redundant semaphore. The struct i2c_adapter includes a
semaphore for the same purpose, operated by i2c-core. This is a backport from Linux 2.6. git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3291 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
1 parent
4bab489796
commit
c72b364135
1 file changed
-5
@@ -62,7 +62,6 @@
|
||||
#include <linux/i2c.h>
|
||||
#include <linux/init.h>
|
||||
#include <asm/io.h>
|
||||
#include <asm/semaphore.h>
|
||||
#include "version.h"
|
||||
#include "sensors_compat.h"
|
||||
|
||||
@@ -140,7 +139,6 @@
|
||||
|
||||
static struct pci_driver ali1535_driver;
|
||||
static unsigned short ali1535_smba = 0;
|
||||
DECLARE_MUTEX(i2c_ali1535_sem);
|
||||
|
||||
|
||||
/* Detect whether a ALI1535 can be found, and initialize it, where necessary.
|
||||
@@ -260,8 +258,6 @@ s32 ali1535_access(struct i2c_adapter * adap, u16 addr,
|
||||
int timeout = 0;
|
||||
int oldsize = size;
|
||||
|
||||
down(&i2c_ali1535_sem);
|
||||
|
||||
repeat:
|
||||
if(timeout++ > MAX_TRY_HEROS) {
|
||||
result = -1;
|
||||
@@ -436,7 +432,6 @@ repeat:
|
||||
break;
|
||||
}
|
||||
EXIT:
|
||||
up(&i2c_ali1535_sem);
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user