diff options
author | Arnd Bergmann <arnd@arndb.de> | 2018-12-10 16:49:10 -0500 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2019-01-29 18:15:36 -0500 |
commit | 2a727f6091372231281efaa8a5f56ee79509fd83 (patch) | |
tree | 8b4b8cf9043cb82cb0b1363d676d4d45708be7a8 /drivers/pci/hotplug/ibmphp.h | |
parent | 25bd879ec16ad3b83a5b1c3f16faa55e696bfccb (diff) |
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.h')
-rw-r--r-- | drivers/pci/hotplug/ibmphp.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/pci/hotplug/ibmphp.h b/drivers/pci/hotplug/ibmphp.h index b89f850c3a4e..e90a4ebf6550 100644 --- a/drivers/pci/hotplug/ibmphp.h +++ b/drivers/pci/hotplug/ibmphp.h | |||
@@ -378,7 +378,6 @@ int ibmphp_add_pfmem_from_mem(struct resource_node *); | |||
378 | struct bus_node *ibmphp_find_res_bus(u8); | 378 | struct bus_node *ibmphp_find_res_bus(u8); |
379 | void ibmphp_print_test(void); /* for debugging purposes */ | 379 | void ibmphp_print_test(void); /* for debugging purposes */ |
380 | 380 | ||
381 | void ibmphp_hpc_initvars(void); | ||
382 | int ibmphp_hpc_readslot(struct slot *, u8, u8 *); | 381 | int ibmphp_hpc_readslot(struct slot *, u8, u8 *); |
383 | int ibmphp_hpc_writeslot(struct slot *, u8); | 382 | int ibmphp_hpc_writeslot(struct slot *, u8); |
384 | void ibmphp_lock_operations(void); | 383 | void ibmphp_lock_operations(void); |