aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@suse.de>2008-02-14 17:56:56 -0500
committerGreg Kroah-Hartman <gregkh@suse.de>2008-04-21 00:47:02 -0400
commit5ff580c10ec06fd296bd23d4570c1a95194094a0 (patch)
treefc00b4a107824519ae452c264674e5b8c2768d8e /include/linux
parentc71c68a04ba7672b9373ef04173114c211bb9f88 (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 'include/linux')
-rw-r--r--include/linux/pci.h3
1 files changed, 0 insertions, 3 deletions
diff --git a/include/linux/pci.h b/include/linux/pci.h
index 5e6d0f413fb9..3b8a4e17052f 100644
--- a/include/linux/pci.h
+++ b/include/linux/pci.h
@@ -132,7 +132,6 @@ struct pci_cap_saved_state {
132 * The pci_dev structure is used to describe PCI devices. 132 * The pci_dev structure is used to describe PCI devices.
133 */ 133 */
134struct pci_dev { 134struct pci_dev {
135 struct list_head global_list; /* node in list of all PCI devices */
136 struct list_head bus_list; /* node in per-bus list */ 135 struct list_head bus_list; /* node in per-bus list */
137 struct pci_bus *bus; /* bus this device is on */ 136 struct pci_bus *bus; /* bus this device is on */
138 struct pci_bus *subordinate; /* bus this device bridges to */ 137 struct pci_bus *subordinate; /* bus this device bridges to */
@@ -206,7 +205,6 @@ struct pci_dev {
206 205
207extern struct pci_dev *alloc_pci_dev(void); 206extern struct pci_dev *alloc_pci_dev(void);
208 207
209#define pci_dev_g(n) list_entry(n, struct pci_dev, global_list)
210#define pci_dev_b(n) list_entry(n, struct pci_dev, bus_list) 208#define pci_dev_b(n) list_entry(n, struct pci_dev, bus_list)
211#define to_pci_dev(n) container_of(n, struct pci_dev, dev) 209#define to_pci_dev(n) container_of(n, struct pci_dev, dev)
212#define for_each_pci_dev(d) while ((d = pci_get_device(PCI_ANY_ID, PCI_ANY_ID, d)) != NULL) 210#define for_each_pci_dev(d) while ((d = pci_get_device(PCI_ANY_ID, PCI_ANY_ID, d)) != NULL)
@@ -450,7 +448,6 @@ extern struct bus_type pci_bus_type;
450/* Do NOT directly access these two variables, unless you are arch specific pci 448/* Do NOT directly access these two variables, unless you are arch specific pci
451 * code, or pci core code. */ 449 * code, or pci core code. */
452extern struct list_head pci_root_buses; /* list of all known PCI buses */ 450extern struct list_head pci_root_buses; /* list of all known PCI buses */
453extern struct list_head pci_devices; /* list of all devices */
454/* Some device drivers need know if pci is initiated */ 451/* Some device drivers need know if pci is initiated */
455extern int no_pci_devices(void); 452extern int no_pci_devices(void);
456 453