From 825be12970fc9aaff4d576d83e1ef12a9edc1f79 Mon Sep 17 00:00:00 2001 From: Thomas Gleixner Date: Sun, 26 Jul 2009 00:48:47 +0200 Subject: [PATCH] ibmphp-hpc: semaphore cleanup commit 7d5e07fca1f23ab94eb406e89691ab33702cb239 in tip. The usage of this "mutex"es is non obvious and probably a completion in some places. Make them semaphores. Signed-off-by: Thomas Gleixner Cc: Greg Kroah-Hartman Signed-off-by: Paul Gortmaker --- drivers/pci/hotplug/ibmphp_hpc.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/pci/hotplug/ibmphp_hpc.c b/drivers/pci/hotplug/ibmphp_hpc.c index 1aaf3f3..f59ed30 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__); -- 1.7.0.4