mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-11-12 16:50:15 +00:00
Static semaphores can be initialized at declaration time. This is
a backport from Linux 2.6. git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3292 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
1 parent
c72b364135
commit
fd2023d0cf
1 file changed
+1
-2
@@ -48,7 +48,7 @@ static struct i2c_adapter *s4882_adapter;
|
||||
static struct i2c_algorithm *s4882_algo;
|
||||
|
||||
/* Wrapper access functions for multiplexed SMBus */
|
||||
static struct semaphore amd756_lock;
|
||||
static DECLARE_MUTEX(amd756_lock);
|
||||
|
||||
static s32 amd756_access_virt0(struct i2c_adapter * adap, u16 addr,
|
||||
unsigned short flags, char read_write,
|
||||
@@ -167,7 +167,6 @@ static int __init amd756_s4882_init(void)
|
||||
}
|
||||
|
||||
printk(KERN_INFO "Enabling SMBus multiplexing for Tyan S4882\n");
|
||||
init_MUTEX(&amd756_lock);
|
||||
|
||||
/* Define the 5 virtual adapters and algorithms structures */
|
||||
if (!(s4882_adapter = kmalloc(5 * sizeof(struct i2c_adapter),
|
||||
|
||||
Reference in new issue
Block a user