summaryrefslogtreecommitdiffstats
path: root/drivers/pci/remove.c
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@suse.de>2008-02-14 23:56:56 +0100
committerGreg Kroah-Hartman <gregkh@suse.de>2008-04-21 06:47:02 +0200
commit5ff580c10ec06fd296bd23d4570c1a95194094a0 (patch)
treefc00b4a107824519ae452c264674e5b8c2768d8e /drivers/pci/remove.c
parentPCI: remove parisc consumer of the pci global_list (diff)
downloadlinux-5ff580c10ec06fd296bd23d4570c1a95194094a0.tar.xz
linux-5ff580c10ec06fd296bd23d4570c1a95194094a0.zip
PCI: remove global list of PCI devices
This patch finally removes the global list of PCI devices. We are relying entirely on the list held in the driver core now, and do not need a separate "shadow" list as no one uses it. Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/pci/remove.c')
-rw-r--r--drivers/pci/remove.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/pci/remove.c b/drivers/pci/remove.c
index d3c77cbe3279..b6824833343f 100644
--- a/drivers/pci/remove.c
+++ b/drivers/pci/remove.c
@@ -23,10 +23,6 @@ static void pci_stop_dev(struct pci_dev *dev)
pci_remove_sysfs_dev_files(dev);
device_unregister(&dev->dev);
dev->is_added = 0;
- down_write(&pci_bus_sem);
- list_del(&dev->global_list);
- dev->global_list.next = dev->global_list.prev = NULL;
- up_write(&pci_bus_sem);
}
}