diff options
author | Arnd Bergmann <arnd@arndb.de> | 2018-12-10 22:49:10 +0100 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2019-01-29 17:15:36 -0600 |
commit | 2a727f6091372231281efaa8a5f56ee79509fd83 (patch) | |
tree | 8b4b8cf9043cb82cb0b1363d676d4d45708be7a8 /drivers/pci/hotplug/ibmphp_core.c | |
parent | 25bd879ec16ad3b83a5b1c3f16faa55e696bfccb (diff) | |
download | linux-stable-2a727f6091372231281efaa8a5f56ee79509fd83.tar.gz linux-stable-2a727f6091372231281efaa8a5f56ee79509fd83.tar.bz2 linux-stable-2a727f6091372231281efaa8a5f56ee79509fd83.zip |
PCI: ibmphp: Turn semaphores into completions or mutexes
The sem_exit variable is conceptually a completion, so it should be called
that.
Similarly, the semOperations semaphore is a simple mutex, and can be
changed into that, respectively.
With both converted, the ibmphp_hpc_initvars() function is no longer used
and can be removed.
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Diffstat (limited to 'drivers/pci/hotplug/ibmphp_core.c')
-rw-r--r-- | drivers/pci/hotplug/ibmphp_core.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/pci/hotplug/ibmphp_core.c b/drivers/pci/hotplug/ibmphp_core.c index 08a58e911fc2..17124254d897 100644 --- a/drivers/pci/hotplug/ibmphp_core.c +++ b/drivers/pci/hotplug/ibmphp_core.c @@ -1277,8 +1277,6 @@ static int __init ibmphp_init(void) ibmphp_debug = debug; - ibmphp_hpc_initvars(); - for (i = 0; i < 16; i++) irqs[i] = 0; |