pci_find_device and pci_find_slot mark as deprecated
PATCH 1/1 pci_find_device and pci_find_slot mark as deprecated
This marks these functions as deprecated not to use in latest drivers
(it doesn't use reference counts and the device returned by it can disappear in any time).
This patch was sent yet on:
28 Jul 2005 (without pci_find_slot removing and wrapping lines)
include/linux/pci.h +0 -0
@@ -328,9 +328,11 @@ void pci_setup_cardbus(struct pci_bus *b
/* Generic PCI functions exported to card drivers */
-struct pci_dev *pci_find_device (unsigned int vendor, unsigned int device, const struct pci_dev *from); +struct pci_dev *pci_find_device (unsigned int vendor, unsigned int device,
+ const struct pci_dev *from) __deprecated;
struct pci_dev *pci_find_device_reverse (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 *pci_find_slot (unsigned int bus, unsigned int devfn)
+ __deprecated;
int pci_find_capability (struct pci_dev *dev, int cap);
int pci_find_ext_capability (struct pci_dev *dev, int cap);
struct pci_bus * pci_find_next_bus(const struct pci_bus *from);
Signature · 3 lines
Jiri Slaby www.fi.muni.cz/~xslaby ~\-/~ [email protected] ~\-/~ 241B347EC88228DE51EE A49C4A73A25004CB2A10