From c72b364135fe0e545a0a81e036671a714c2c7825 Mon Sep 17 00:00:00 2001 From: Jean Delvare Date: Sun, 14 May 2006 14:39:50 +0000 Subject: [PATCH] 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 --- kernel/busses/i2c-ali1535.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/kernel/busses/i2c-ali1535.c b/kernel/busses/i2c-ali1535.c index 1b9cc13d..ca3d15b3 100644 --- a/kernel/busses/i2c-ali1535.c +++ b/kernel/busses/i2c-ali1535.c @@ -62,7 +62,6 @@ #include #include #include -#include #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; }