From: Thomas Gleixner Date: Tue, 7 Sep 2010 14:32:38 +0000 (+0000) Subject: PCI hotplug: ibmphp-hpc: semaphore cleanup X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=5a37f1381f1d8625fa458360c9b5d17f0c5f1dea;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git PCI hotplug: ibmphp-hpc: semaphore cleanup Get rid of init_MUTEX[_LOCKED]() and use sema_init() instead. Signed-off-by: Thomas Gleixner Signed-off-by: Jesse Barnes --- diff --git a/drivers/pci/hotplug/ibmphp_hpc.c b/drivers/pci/hotplug/ibmphp_hpc.c index 1aaf3f32d3cd..f59ed30512b5 100644 --- a/drivers/pci/hotplug/ibmphp_hpc.c +++ b/drivers/pci/hotplug/ibmphp_hpc.c @@ -133,8 +133,8 @@ void __init ibmphp_hpc_initvars (void) debug ("%s - Entry\n", __func__); mutex_init(&sem_hpcaccess); - init_MUTEX (&semOperations); - init_MUTEX_LOCKED (&sem_exit); + sema_init(&semOperations, 1); + sema_init(&sem_exit, 0); to_debug = 0; debug ("%s - Exit\n", __func__);