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

Commit 5a37f138 authored by Thomas Gleixner's avatar Thomas Gleixner Committed by Jesse Barnes
Browse files

PCI hotplug: ibmphp-hpc: semaphore cleanup



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

Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
Signed-off-by: default avatarJesse Barnes <jbarnes@virtuousgeek.org>
parent 50c1126e
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -133,8 +133,8 @@ void __init ibmphp_hpc_initvars (void)
	debug ("%s - Entry\n", __func__);
	debug ("%s - Entry\n", __func__);


	mutex_init(&sem_hpcaccess);
	mutex_init(&sem_hpcaccess);
	init_MUTEX (&semOperations);
	sema_init(&semOperations, 1);
	init_MUTEX_LOCKED (&sem_exit);
	sema_init(&sem_exit, 0);
	to_debug = 0;
	to_debug = 0;


	debug ("%s - Exit\n", __func__);
	debug ("%s - Exit\n", __func__);