PCI: acpiphp: remove unused res_lock
authorYinghai Lu <yinghai@kernel.org>
Sat, 23 Jun 2012 07:42:01 +0000 (00:42 -0700)
committerBjorn Helgaas <bhelgaas@google.com>
Tue, 10 Jul 2012 21:44:58 +0000 (15:44 -0600)
res_lock is never used, so remove it.

Signed-off-by: Yinghai Lu <yinghai@kernel.org>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/hotplug/acpiphp.h
drivers/pci/hotplug/acpiphp_glue.c

index 7722108e78df4e9f5294aa5ab337f58af491f1ac..6b58ed0432e970da6033e8f30d7cec037eb4951b 100644 (file)
@@ -89,8 +89,6 @@ struct acpiphp_bridge {
 
        /* PCI-to-PCI bridge device */
        struct pci_dev *pci_dev;
-
-       spinlock_t res_lock;
 };
 
 
index 806c44fa645a57bb355cbab72276cba2a10be60e..7dc8dd00135accdd63dce05f505c55ef1c32bf0f 100644 (file)
@@ -391,8 +391,6 @@ static void add_host_bridge(acpi_handle *handle)
 
        bridge->pci_bus = root->bus;
 
-       spin_lock_init(&bridge->res_lock);
-
        init_bridge_misc(bridge);
 }
 
@@ -425,7 +423,6 @@ static void add_p2p_bridge(acpi_handle *handle)
         * (which we access during module unload).
         */
        get_device(&bridge->pci_bus->dev);
-       spin_lock_init(&bridge->res_lock);
 
        init_bridge_misc(bridge);
        return;