Use mutexes instead of semaphores in I2O driver
The I2O driver uses two semaphores as mutexes. Use the mutex API instead of the (binary) semaphores. Signed-off-by: Matthias Kaehlcke <matthias.kaehlcke@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:

committed by
Linus Torvalds

parent
1c6b4aa945
commit
9ac162521c
@@ -1067,7 +1067,7 @@ struct i2o_controller *i2o_iop_alloc(void)
|
||||
|
||||
INIT_LIST_HEAD(&c->devices);
|
||||
spin_lock_init(&c->lock);
|
||||
init_MUTEX(&c->lct_lock);
|
||||
mutex_init(&c->lct_lock);
|
||||
|
||||
device_initialize(&c->device);
|
||||
|
||||
|
Reference in New Issue
Block a user