Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 557d0540 authored by Thomas Gleixner's avatar Thomas Gleixner Committed by Roland Dreier
Browse files

IB/umad: Make user_mad semaphore a real one



Get rid of init_MUTEX[_LOCKED]() and use sema_init() instead.

Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
Signed-off-by: default avatarRoland Dreier <rolandd@cisco.com>
parent 605841f5
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);