summaryrefslogtreecommitdiffstats
path: root/include/linux/ide.h
diff options
context:
space:
mode:
authorMatthias Kaehlcke2007-07-09 23:17:56 +0200
committerBartlomiej Zolnierkiewicz2007-07-09 23:17:56 +0200
commitf9383c4269d264c3cf563bd2de365891f6592ebd (patch)
tree7f1f3525c51237dc5806d17dd2c68c19d47a493b /include/linux/ide.h
parentaec62xx: remove init_dma() method (take 2) (diff)
downloadkernel-qcow2-linux-f9383c4269d264c3cf563bd2de365891f6592ebd.tar.gz
kernel-qcow2-linux-f9383c4269d264c3cf563bd2de365891f6592ebd.tar.xz
kernel-qcow2-linux-f9383c4269d264c3cf563bd2de365891f6592ebd.zip
ide: use mutex instead of ide_setting_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/linux/ide.h')
-rw-r--r--include/linux/ide.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/ide.h b/include/linux/ide.h
index 16ae68857f57..b6546f442fa4 100644
--- a/include/linux/ide.h
+++ b/include/linux/ide.h
@@ -25,6 +25,7 @@
#include <asm/system.h>
#include <asm/io.h>
#include <asm/semaphore.h>
+#include <asm/mutex.h>
/******************************************************************************
* IDE driver configuration options (play with these as desired):
@@ -863,7 +864,7 @@ typedef struct hwgroup_s {
typedef struct ide_driver_s ide_driver_t;
-extern struct semaphore ide_setting_sem;
+extern struct mutex ide_setting_mtx;
int set_io_32bit(ide_drive_t *, int);
int set_pio_mode(ide_drive_t *, int);