aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pci
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2010-09-07 14:32:38 +0000
committerJesse Barnes <jbarnes@virtuousgeek.org>2010-10-15 13:09:48 -0700
commit5a37f1381f1d8625fa458360c9b5d17f0c5f1dea (patch)
tree864084823661c558594dc08d9bf89e5280aecfc4 /drivers/pci
parent50c1126ee1990920705a067a6f3f9bb892369b08 (diff)
downloadkernel_samsung_smdk4412-5a37f1381f1d8625fa458360c9b5d17f0c5f1dea.zip
kernel_samsung_smdk4412-5a37f1381f1d8625fa458360c9b5d17f0c5f1dea.tar.gz
kernel_samsung_smdk4412-5a37f1381f1d8625fa458360c9b5d17f0c5f1dea.tar.bz2
PCI hotplug: ibmphp-hpc: semaphore cleanup
Get rid of init_MUTEX[_LOCKED]() and use sema_init() instead. Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Diffstat (limited to 'drivers/pci')
-rw-r--r--drivers/pci/hotplug/ibmphp_hpc.c4
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__);