diff options
author | Martyn Welch <martyn.welch@gefanuc.com> | 2009-08-11 16:20:22 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2009-09-15 12:02:11 -0700 |
commit | 400822fec46ce69d2ba7692689a1689653f7b847 (patch) | |
tree | 2ceb1f136ca514a17d8a14e38dfcc7595d192add /drivers/staging/vme/vme_bridge.h | |
parent | 238add523bf9c89db1a191599fff2770af55e0fd (diff) |
Staging: Use proper mutexes in the tsi-148 VME driver
The VME core and tsi-148 driver currently use semaphores as mutexes. Switch to proper
mutex implementation.
Signed-off-by: Martyn Welch <martyn.welch@gefanuc.com>
Reviewed-by: Emilio G. Cota <cota@braap.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/vme/vme_bridge.h')
-rw-r--r-- | drivers/staging/vme/vme_bridge.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/staging/vme/vme_bridge.h b/drivers/staging/vme/vme_bridge.h index b0d688551a96..b6f694adff5d 100644 --- a/drivers/staging/vme/vme_bridge.h +++ b/drivers/staging/vme/vme_bridge.h @@ -11,7 +11,7 @@ struct vme_master_resource { struct vme_bridge *parent; /* * We are likely to need to access the VME bus in interrupt context, so - * protect master routines with a spinlock rather than a semaphore. + * protect master routines with a spinlock rather than a mutex. */ spinlock_t lock; int locked; @@ -26,7 +26,7 @@ struct vme_master_resource { struct vme_slave_resource { struct list_head list; struct vme_bridge *parent; - struct semaphore sem; + struct mutex mtx; int locked; int number; vme_address_t address_attr; @@ -53,13 +53,13 @@ struct vme_dma_list { struct list_head list; struct vme_dma_resource *parent; struct list_head entries; - struct semaphore sem; + struct mutex mtx; }; struct vme_dma_resource { struct list_head list; struct vme_bridge *parent; - struct semaphore sem; + struct mutex mtx; int locked; int number; struct list_head pending; |