From: Andrew Morton fed up with those stupid warnings Signed-off-by: Andrew Morton --- include/linux/pci.h | 8 +++----- 1 file changed, 3 insertions(+), 5 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 @@ -531,11 +531,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 *from); -struct pci_dev __deprecated *pci_find_slot(unsigned int bus, - unsigned int devfn); +struct pci_dev *pci_find_device(unsigned int vendor, unsigned int device, + struct pci_dev *from); +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); _