diff options
author | Lukas Wunner <lukas@wunner.de> | 2018-07-20 00:27:46 +0200 |
---|---|---|
committer | Bjorn Helgaas <helgaas@kernel.org> | 2018-07-24 00:04:15 +0200 |
commit | 1656716d45d0aae8c0a21a0553b9d27cd98fda61 (patch) | |
tree | 949a72be5647e6bec3daf6fa9b5e1799ce24993e /drivers/pci/hotplug/pciehp_hpc.c | |
parent | PCI: pciehp: Enable/disable exclusively from IRQ thread (diff) | |
download | linux-1656716d45d0aae8c0a21a0553b9d27cd98fda61.tar.xz linux-1656716d45d0aae8c0a21a0553b9d27cd98fda61.zip |
PCI: pciehp: Drop enable/disable lock
Previously slot enablement and disablement could happen concurrently.
But now it's under the exclusive control of the IRQ thread, rendering
the locking obsolete. Drop it.
Signed-off-by: Lukas Wunner <lukas@wunner.de>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Diffstat (limited to 'drivers/pci/hotplug/pciehp_hpc.c')
-rw-r--r-- | drivers/pci/hotplug/pciehp_hpc.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/pci/hotplug/pciehp_hpc.c b/drivers/pci/hotplug/pciehp_hpc.c index 6951a0123e39..7f1a29cd6a17 100644 --- a/drivers/pci/hotplug/pciehp_hpc.c +++ b/drivers/pci/hotplug/pciehp_hpc.c @@ -781,7 +781,6 @@ static int pcie_init_slot(struct controller *ctrl) slot->ctrl = ctrl; mutex_init(&slot->lock); - mutex_init(&slot->hotplug_lock); INIT_DELAYED_WORK(&slot->work, pciehp_queue_pushbutton_work); ctrl->slot = slot; return 0; |