[PATCH 20/30] staging/vme: trivial: rename vme_bus_num_mtx to vme_buses_lock
From: Emilio G. Cota
Date: Fri Oct 22 2010 - 03:06:23 EST
From: Emilio G. Cota <cota@xxxxxxxxx>
This paves the way for upcoming changes.
Signed-off-by: Emilio G. Cota <cota@xxxxxxxxx>
---
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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/