aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pci/hotplug
diff options
context:
space:
mode:
authorYinghai Lu <yinghai@kernel.org>2012-06-23 03:42:01 -0400
committerBjorn Helgaas <bhelgaas@google.com>2012-07-10 17:44:58 -0400
commite735a80bd57d6b04e1c8f30da762ed0c6af5ee6a (patch)
tree55b16098ff5fb40b847158b3d308f81b8d5f48fb /drivers/pci/hotplug
parentcfaf025112d3856637ff34a767ef785ef5cf2ca9 (diff)
PCI: acpiphp: remove unused res_lock
res_lock is never used, so remove it. Signed-off-by: Yinghai Lu <yinghai@kernel.org> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Diffstat (limited to 'drivers/pci/hotplug')
-rw-r--r--drivers/pci/hotplug/acpiphp.h2
-rw-r--r--drivers/pci/hotplug/acpiphp_glue.c3
2 files changed, 0 insertions, 5 deletions
diff --git a/drivers/pci/hotplug/acpiphp.h b/drivers/pci/hotplug/acpiphp.h
index 7722108e78df..6b58ed0432e9 100644
--- a/drivers/pci/hotplug/acpiphp.h
+++ b/drivers/pci/hotplug/acpiphp.h
@@ -89,8 +89,6 @@ struct acpiphp_bridge {
89 89
90 /* PCI-to-PCI bridge device */ 90 /* PCI-to-PCI bridge device */
91 struct pci_dev *pci_dev; 91 struct pci_dev *pci_dev;
92
93 spinlock_t res_lock;
94}; 92};
95 93
96 94
diff --git a/drivers/pci/hotplug/acpiphp_glue.c b/drivers/pci/hotplug/acpiphp_glue.c
index 806c44fa645a..7dc8dd00135a 100644
--- a/drivers/pci/hotplug/acpiphp_glue.c
+++ b/drivers/pci/hotplug/acpiphp_glue.c
@@ -391,8 +391,6 @@ static void add_host_bridge(acpi_handle *handle)
391 391
392 bridge->pci_bus = root->bus; 392 bridge->pci_bus = root->bus;
393 393
394 spin_lock_init(&bridge->res_lock);
395
396 init_bridge_misc(bridge); 394 init_bridge_misc(bridge);
397} 395}
398 396
@@ -425,7 +423,6 @@ static void add_p2p_bridge(acpi_handle *handle)
425 * (which we access during module unload). 423 * (which we access during module unload).
426 */ 424 */
427 get_device(&bridge->pci_bus->dev); 425 get_device(&bridge->pci_bus->dev);
428 spin_lock_init(&bridge->res_lock);
429 426
430 init_bridge_misc(bridge); 427 init_bridge_misc(bridge);
431 return; 428 return;