public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] pci_find_device and pci_find_slot mark as deprecated
@ 2005-08-08  0:10 Jiri Slaby
  0 siblings, 0 replies; 8+ messages in thread
From: Jiri Slaby @ 2005-08-08  0:10 UTC (permalink / raw)
  To: Andrew Morton; +Cc: Linux Kernel Mailing List

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)

Signed-off-by: Jiri Slaby <xslaby@fi.muni.cz>

diff --git a/include/linux/pci.h b/include/linux/pci.h
--- a/include/linux/pci.h
+++ b/include/linux/pci.h
@@ -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);

-- 
Jiri Slaby         www.fi.muni.cz/~xslaby
~\-/~      jirislaby@gmail.com      ~\-/~
241B347EC88228DE51EE A49C4A73A25004CB2A10


^ permalink raw reply	[flat|nested] 8+ messages in thread
[parent not found: <42F72D4D.8030102@volny.cz>]

end of thread, other threads:[~2005-08-10  0:50 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-08-08  0:10 [PATCH] pci_find_device and pci_find_slot mark as deprecated Jiri Slaby
     [not found] <42F72D4D.8030102@volny.cz>
2005-08-08 23:54 ` Jiri Slaby
2005-08-09  4:11   ` Greg KH
2005-08-09  9:58     ` Jiri Slaby
2005-08-09 10:05       ` Jiri Slaby
2005-08-09 21:57       ` Greg KH
2005-08-10  0:41         ` Jiri Slaby
2005-08-10  0:50           ` Jiri Slaby

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox