diff options
author | Matthias Kaehlcke <matthias.kaehlcke@gmail.com> | 2007-07-16 02:39:49 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-07-16 12:05:41 -0400 |
commit | 9ac162521cd9796f44d263a61090634844c719a6 (patch) | |
tree | 5988aba4299002ea4a425f747a275d29cb9dd3c5 /drivers/message/i2o/exec-osm.c | |
parent | 1c6b4aa94576eee6dec3b8011f60d7f666db90b0 (diff) |
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>
Diffstat (limited to 'drivers/message/i2o/exec-osm.c')
-rw-r--r-- | drivers/message/i2o/exec-osm.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/message/i2o/exec-osm.c b/drivers/message/i2o/exec-osm.c index 5278aad92bc4..c13b9321e7ab 100644 --- a/drivers/message/i2o/exec-osm.c +++ b/drivers/message/i2o/exec-osm.c | |||
@@ -537,7 +537,7 @@ static int i2o_exec_lct_notify(struct i2o_controller *c, u32 change_ind) | |||
537 | struct device *dev; | 537 | struct device *dev; |
538 | struct i2o_message *msg; | 538 | struct i2o_message *msg; |
539 | 539 | ||
540 | down(&c->lct_lock); | 540 | mutex_lock(&c->lct_lock); |
541 | 541 | ||
542 | dev = &c->pdev->dev; | 542 | dev = &c->pdev->dev; |
543 | 543 | ||
@@ -561,7 +561,7 @@ static int i2o_exec_lct_notify(struct i2o_controller *c, u32 change_ind) | |||
561 | 561 | ||
562 | i2o_msg_post(c, msg); | 562 | i2o_msg_post(c, msg); |
563 | 563 | ||
564 | up(&c->lct_lock); | 564 | mutex_unlock(&c->lct_lock); |
565 | 565 | ||
566 | return 0; | 566 | return 0; |
567 | }; | 567 | }; |