vserver 1.9.5.x5
[linux-2.6.git] / drivers / pci / proc.c
index 81fd72e..da51bf9 100644 (file)
@@ -379,7 +379,7 @@ static struct seq_operations proc_bus_pci_devices_op = {
        .show   = show_device
 };
 
-struct proc_dir_entry *proc_bus_pci_dir;
+static struct proc_dir_entry *proc_bus_pci_dir;
 
 int pci_proc_attach_device(struct pci_dev *dev)
 {
@@ -599,7 +599,7 @@ static int __init pci_proc_init(void)
        if (entry)
                entry->proc_fops = &proc_bus_pci_dev_operations;
        proc_initialized = 1;
-       while ((dev = pci_find_device(PCI_ANY_ID, PCI_ANY_ID, dev)) != NULL) {
+       while ((dev = pci_get_device(PCI_ANY_ID, PCI_ANY_ID, dev)) != NULL) {
                pci_proc_attach_device(dev);
        }
        legacy_proc_init();
@@ -612,6 +612,5 @@ __initcall(pci_proc_init);
 EXPORT_SYMBOL(pci_proc_attach_device);
 EXPORT_SYMBOL(pci_proc_attach_bus);
 EXPORT_SYMBOL(pci_proc_detach_bus);
-EXPORT_SYMBOL(proc_bus_pci_dir);
 #endif