diff options
| author | Greg Kroah-Hartman <greg@kroah.com> | 2003-06-04 22:04:44 -0700 |
|---|---|---|
| committer | Greg Kroah-Hartman <greg@kroah.com> | 2003-06-04 22:04:44 -0700 |
| commit | c8feecedb31d23f32f4d77709bdd7ff25407293e (patch) | |
| tree | d2d80c3b00914110d129a39eb3ed8c8433825830 /include/linux/pci.h | |
| parent | a25f3e36d8d2b6f0cf1dc520ff8222754687758c (diff) | |
[PATCH] PCI: remove EXPORT_SYMBOL(pci_devices)
Now the only users of this directly should be the pci core and arch specific
pci core code.
Diffstat (limited to 'include/linux/pci.h')
| -rw-r--r-- | include/linux/pci.h | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/include/linux/pci.h b/include/linux/pci.h index c96ff2f22c7e..3fcff22bac32 100644 --- a/include/linux/pci.h +++ b/include/linux/pci.h @@ -468,10 +468,6 @@ struct pci_bus { #define pci_bus_b(n) list_entry(n, struct pci_bus, node) -extern struct list_head pci_root_buses; /* list of all known PCI buses */ -extern struct list_head pci_devices; /* list of all devices */ -extern struct bus_type pci_bus_type; - /* * Error values that may be returned by PCI functions. */ @@ -522,6 +518,13 @@ struct pci_driver { /* these external functions are only available when PCI support is enabled */ #ifdef CONFIG_PCI +extern struct bus_type pci_bus_type; + +/* Do NOT directly access these two variables, unless you are arch specific pci + * code, or pci core code. */ +extern struct list_head pci_root_buses; /* list of all known PCI buses */ +extern struct list_head pci_devices; /* list of all devices */ + #define pci_for_each_bus(bus) \ for(bus = pci_bus_b(pci_root_buses.next); bus != pci_bus_b(&pci_root_buses); bus = pci_bus_b(bus->node.next)) |
