Skip to content

Commit

Permalink
PCI: acpiphp: remove unused res_lock
Browse files Browse the repository at this point in the history
res_lock is never used, so remove it.

Signed-off-by: Yinghai Lu <yinghai@kernel.org>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
  • Loading branch information
Yinghai Lu authored and Bjorn Helgaas committed Jul 10, 2012
1 parent cfaf025 commit e735a80
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 5 deletions.
2 changes: 0 additions & 2 deletions drivers/pci/hotplug/acpiphp.h
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,6 @@ struct acpiphp_bridge {

/* PCI-to-PCI bridge device */
struct pci_dev *pci_dev;

spinlock_t res_lock;
};


Expand Down
3 changes: 0 additions & 3 deletions drivers/pci/hotplug/acpiphp_glue.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit e735a80

Please sign in to comment.