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 /include/linux | |
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 'include/linux')
-rw-r--r-- | include/linux/pci.h | 3 |
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 | */ |
134 | struct pci_dev { | 134 | struct 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 | ||
207 | extern struct pci_dev *alloc_pci_dev(void); | 206 | extern 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. */ |
452 | extern struct list_head pci_root_buses; /* list of all known PCI buses */ | 450 | extern struct list_head pci_root_buses; /* list of all known PCI buses */ |
453 | extern 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 */ |
455 | extern int no_pci_devices(void); | 452 | extern int no_pci_devices(void); |
456 | 453 | ||