diff options
author | Greg Kroah-Hartman <gregkh@suse.de> | 2008-02-14 17:56:56 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2008-04-21 00:47:02 -0400 |
commit | 5ff580c10ec06fd296bd23d4570c1a95194094a0 (patch) | |
tree | fc00b4a107824519ae452c264674e5b8c2768d8e /drivers/pci/bus.c | |
parent | c71c68a04ba7672b9373ef04173114c211bb9f88 (diff) |
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/bus.c')
-rw-r--r-- | drivers/pci/bus.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/pci/bus.c b/drivers/pci/bus.c index e1c079aa0e82..529d9d7727b0 100644 --- a/drivers/pci/bus.c +++ b/drivers/pci/bus.c | |||
@@ -85,10 +85,6 @@ int pci_bus_add_device(struct pci_dev *dev) | |||
85 | return retval; | 85 | return retval; |
86 | 86 | ||
87 | dev->is_added = 1; | 87 | dev->is_added = 1; |
88 | down_write(&pci_bus_sem); | ||
89 | list_add_tail(&dev->global_list, &pci_devices); | ||
90 | up_write(&pci_bus_sem); | ||
91 | |||
92 | pci_proc_attach_device(dev); | 88 | pci_proc_attach_device(dev); |
93 | pci_create_sysfs_dev_files(dev); | 89 | pci_create_sysfs_dev_files(dev); |
94 | return 0; | 90 | return 0; |