Changeset 3292

Show
Ignore:
Timestamp:
05/14/06 16:59:37 (8 years ago)
Author:
khali
Message:

Static semaphores can be initialized at declaration time. This is
a backport from Linux 2.6.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lm-sensors/trunk/kernel/busses/i2c-amd756-s4882.c

    r3251 r3292  
    4949 
    5050/* Wrapper access functions for multiplexed SMBus */ 
    51 static struct semaphore amd756_lock; 
     51static DECLARE_MUTEX(amd756_lock); 
    5252 
    5353static s32 amd756_access_virt0(struct i2c_adapter * adap, u16 addr, 
     
    168168 
    169169        printk(KERN_INFO "Enabling SMBus multiplexing for Tyan S4882\n"); 
    170         init_MUTEX(&amd756_lock); 
    171170 
    172171        /* Define the 5 virtual adapters and algorithms structures */