lkml.org 
[lkml]   [2010]   [Oct]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH 20/30] staging/vme: trivial: rename vme_bus_num_mtx to vme_buses_lock
Date
From: Emilio G. Cota <cota@braap.org>

This paves the way for upcoming changes.

Signed-off-by: Emilio G. Cota <cota@braap.org>
---
drivers/staging/vme/vme.c | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/drivers/staging/vme/vme.c b/drivers/staging/vme/vme.c
index 59650dd..357748e 100644
--- a/drivers/staging/vme/vme.c
+++ b/drivers/staging/vme/vme.c
@@ -36,7 +36,7 @@

/* Bitmask and mutex to keep track of bridge numbers */
static unsigned int vme_bus_numbers;
-static DEFINE_MUTEX(vme_bus_num_mtx);
+static DEFINE_MUTEX(vme_buses_lock);

static void __exit vme_exit(void);
static int __init vme_init(void);
@@ -1307,7 +1307,7 @@ EXPORT_SYMBOL(vme_slot_get);

/* - Bridge Registration --------------------------------------------------- */

-/* call with vme_bus_num_mtx held */
+/* call with vme_buses_lock held */
static int __vme_alloc_bus_num(int *bus)
{
int index;
@@ -1339,17 +1339,17 @@ static int vme_alloc_bus_num(int *bus)
{
int ret;

- mutex_lock(&vme_bus_num_mtx);
+ mutex_lock(&vme_buses_lock);
ret = __vme_alloc_bus_num(bus);
- mutex_unlock(&vme_bus_num_mtx);
+ mutex_unlock(&vme_buses_lock);
return ret;
}

static void vme_free_bus_num(int bus)
{
- mutex_lock(&vme_bus_num_mtx);
+ mutex_lock(&vme_buses_lock);
vme_bus_numbers &= ~(0x1 << bus);
- mutex_unlock(&vme_bus_num_mtx);
+ mutex_unlock(&vme_buses_lock);
}

/* Note: device_release(dev) throws a warning if dev->release isn't filled in */
--
1.7.1


\
 
 \ /
  Last update: 2010-10-26 03:17    [W:0.348 / U:2.688 seconds]
©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site