]> git.neil.brown.name Git - history.git/commitdiff
PCI: remove pci_find_device()
authorGreg Kroah-Hartman <greg@kroah.com>
Thu, 3 Oct 2002 06:45:53 +0000 (23:45 -0700)
committerGreg Kroah-Hartman <greg@kroah.com>
Thu, 3 Oct 2002 06:45:53 +0000 (23:45 -0700)
drivers/pci/compat.c
include/linux/pci.h

index 4082c8f087b29fdc3206079636061bb4cafba37f..51e9b0828d083dff77c48e4fec5869fe5c134b7b 100644 (file)
@@ -19,22 +19,6 @@ pcibios_present(void)
        return !list_empty(&pci_devices);
 }
 
-int
-pcibios_find_device(unsigned short vendor, unsigned short device, unsigned short index,
-                   unsigned char *bus, unsigned char *devfn)
-{
-       const struct pci_dev *dev = NULL;
-       int cnt = 0;
-
-       while ((dev = pci_find_device(vendor, device, dev)))
-               if (index == cnt++) {
-                       *bus = dev->bus->number;
-                       *devfn = dev->devfn;
-                       return PCIBIOS_SUCCESSFUL;
-               }
-       return PCIBIOS_DEVICE_NOT_FOUND;
-}
-
 #define PCI_OP(rw,size,type)                                                   \
 int pcibios_##rw##_config_##size (unsigned char bus, unsigned char dev_fn,     \
                                  unsigned char where, unsigned type val)       \
@@ -59,4 +43,3 @@ EXPORT_SYMBOL(pcibios_read_config_dword);
 EXPORT_SYMBOL(pcibios_write_config_byte);
 EXPORT_SYMBOL(pcibios_write_config_word);
 EXPORT_SYMBOL(pcibios_write_config_dword);
-EXPORT_SYMBOL(pcibios_find_device);
index ec8f0686e24a6e9665cb0e5a1154bfac9b8a07af..933e62a6813c33b11f4b81653df0623298728523 100644 (file)
@@ -533,9 +533,6 @@ int pcibios_write_config_word (unsigned char bus, unsigned char dev_fn,
                               unsigned char where, unsigned short val);
 int pcibios_write_config_dword (unsigned char bus, unsigned char dev_fn,
                                unsigned char where, unsigned int val);
-int pcibios_find_device (unsigned short vendor, unsigned short dev_id,
-                        unsigned short index, unsigned char *bus,
-                        unsigned char *dev_fn);
 
 /* Generic PCI functions used internally */