summaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/core
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2010-09-07 14:33:31 +0000
committerRoland Dreier <rolandd@cisco.com>2010-09-28 20:52:21 -0700
commit557d0540b96176dc42943e84c88c288f523388ca (patch)
tree662dd22ce788e895243ec5accfd11c7ea051fc65 /drivers/infiniband/core
parent605841f5d263892d9254f09fcf265a26e0bede7e (diff)
downloadop-kernel-dev-557d0540b96176dc42943e84c88c288f523388ca.zip
op-kernel-dev-557d0540b96176dc42943e84c88c288f523388ca.tar.gz
IB/umad: Make user_mad semaphore a real one
Get rid of init_MUTEX[_LOCKED]() and use sema_init() instead. Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Roland Dreier <rolandd@cisco.com>
Diffstat (limited to 'drivers/infiniband/core')
-rw-r--r--drivers/infiniband/core/user_mad.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/infiniband/core/user_mad.c b/drivers/infiniband/core/user_mad.c
index 5fa8569..cd1996d 100644
--- a/drivers/infiniband/core/user_mad.c
+++ b/drivers/infiniband/core/user_mad.c
@@ -1022,7 +1022,7 @@ static int ib_umad_init_port(struct ib_device *device, int port_num,
port->ib_dev = device;
port->port_num = port_num;
- init_MUTEX(&port->sm_sem);
+ sema_init(&port->sm_sem, 1);
mutex_init(&port->file_mutex);
INIT_LIST_HEAD(&port->file_list);
OpenPOWER on IntegriCloud