From: Jiri Slaby <jirislaby@gmail.com>
To: Andrew Morton <akpm@osdl.org>
Cc: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: [PATCH] pci_find_device and pci_find_slot mark as deprecated
Date: Mon, 08 Aug 2005 02:10:27 +0200 [thread overview]
Message-ID: <42F6A2F3.5020906@gmail.com> (raw)
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
next reply other threads:[~2005-08-08 0:10 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-08-08 0:10 Jiri Slaby [this message]
[not found] <42F72D4D.8030102@volny.cz>
2005-08-08 23:54 ` [PATCH] pci_find_device and pci_find_slot mark as deprecated 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=42F6A2F3.5020906@gmail.com \
--to=jirislaby@gmail.com \
--cc=akpm@osdl.org \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox