From: Andrew Morton fed up with those stupid warnings Signed-off-by: Andrew Morton --- include/linux/pci.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff -puN include/linux/pci.h~undeprecate-pci_find_device include/linux/pci.h --- a/include/linux/pci.h~undeprecate-pci_find_device +++ a/include/linux/pci.h @@ -490,11 +490,9 @@ extern void pci_sort_breadthfirst(void); /* Generic PCI functions exported to card drivers */ #ifdef CONFIG_PCI_LEGACY -struct pci_dev __deprecated *pci_find_device(unsigned int vendor, - unsigned int device, +struct pci_dev *pci_find_device(unsigned int vendor, unsigned int device, const struct pci_dev *from); -struct pci_dev __deprecated *pci_find_slot(unsigned int bus, - unsigned int devfn); +struct pci_dev *pci_find_slot(unsigned int bus, unsigned int devfn); #endif /* CONFIG_PCI_LEGACY */ int pci_find_capability(struct pci_dev *dev, int cap); _