projects
/
GitHub
/
exynos8895
/
android_kernel_samsung_universal8895.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
50c1126
)
PCI hotplug: ibmphp-hpc: semaphore cleanup
author
Thomas Gleixner
<tglx@linutronix.de>
Tue, 7 Sep 2010 14:32:38 +0000
(14:32 +0000)
committer
Jesse Barnes
<jbarnes@virtuousgeek.org>
Fri, 15 Oct 2010 20:09:48 +0000
(13:09 -0700)
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>
drivers/pci/hotplug/ibmphp_hpc.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/pci/hotplug/ibmphp_hpc.c
b/drivers/pci/hotplug/ibmphp_hpc.c
index 1aaf3f32d3cdb39588819cf80cd54141efc05c4f..f59ed30512b5f08d1a61e59910e802d2399cf850 100644
(file)
--- 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__);