Skip to content

Commit

Permalink
PCI hotplug: ibmphp-hpc: semaphore cleanup
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Thomas Gleixner authored and Jesse Barnes committed Oct 15, 2010
1 parent 50c1126 commit 5a37f13
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/pci/hotplug/ibmphp_hpc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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__);
Expand Down

0 comments on commit 5a37f13

Please sign in to comment.