Skip to contentSkip to conversation

pci_find_slot: Mark deprecated

PATCH New Alan Cox 1 participant 1 message May 21, 2007 PCI

lore
Share & tools
lore

Alan Cox

author
#0 lore raw

PATCH 1/1 pci_find_slot: Mark deprecated

We've now fixed up most users of pci_find_slot, and the remainder are either hard and need someone with the hardware and info to work on it, or patches exist but are not yet merged.

Time therefore for some gentle encouragement

include/linux/pci.h +1 -1
diff -u --new-file --recursive --exclude-from /usr/src/exclude linux.vanilla-2.6.22-rc1-mm1/include/linux/pci.h linux-2.6.22-rc1-mm1/include/linux/pci.h
@@ -478,7 +478,7 @@
 /* Generic PCI functions exported to card drivers */
 
 struct pci_dev __deprecated *pci_find_device (unsigned int vendor, unsigned int device, const struct pci_dev *from);
-struct pci_dev *pci_find_slot (unsigned int bus, unsigned int devfn);
+struct pci_dev __deprecated *pci_find_slot (unsigned int bus, unsigned int devfn);
 int pci_find_capability (struct pci_dev *dev, int cap);
 int pci_find_next_capability (struct pci_dev *dev, u8 pos, int cap);
 int pci_find_ext_capability (struct pci_dev *dev, int cap);