diff options
author | Matthias Kaehlcke <matthias.kaehlcke@gmail.com> | 2007-07-09 17:17:55 -0400 |
---|---|---|
committer | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2007-07-09 17:17:55 -0400 |
commit | ef29888ea8e1fdc499e995260195b66fc91d2728 (patch) | |
tree | aa042c07a63de5bf4147ab819f89724ad9838877 /include | |
parent | c283f5dbe31920ca70b80a594a97bfaa2a28be13 (diff) |
ide: use mutex instead of ide_cfg_sem semaphore in IDE driver
The IDE driver uses a semaphore as mutex.
Use the mutex API instead of the (binary) semaphore.
Signed-off-by: Matthias Kaehlcke <matthias.kaehlcke@gmail.com>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/ide.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/ide.h b/include/linux/ide.h index 0bacf7f7c791..16ae68857f57 100644 --- a/include/linux/ide.h +++ b/include/linux/ide.h | |||
@@ -1382,11 +1382,11 @@ extern const ide_pio_timings_t ide_pio_timings[6]; | |||
1382 | 1382 | ||
1383 | 1383 | ||
1384 | extern spinlock_t ide_lock; | 1384 | extern spinlock_t ide_lock; |
1385 | extern struct semaphore ide_cfg_sem; | 1385 | extern struct mutex ide_cfg_mtx; |
1386 | /* | 1386 | /* |
1387 | * Structure locking: | 1387 | * Structure locking: |
1388 | * | 1388 | * |
1389 | * ide_cfg_sem and ide_lock together protect changes to | 1389 | * ide_cfg_mtx and ide_lock together protect changes to |
1390 | * ide_hwif_t->{next,hwgroup} | 1390 | * ide_hwif_t->{next,hwgroup} |
1391 | * ide_drive_t->next | 1391 | * ide_drive_t->next |
1392 | * | 1392 | * |