From: Jiri Slaby <jirislaby@gmail.com>
To: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Cc: Andrew Morton <akpm@osdl.org>,
philb@gnu.org, tim@cyberelk.net, campbell@torque.net,
andrea@suse.de
Subject: [PATCH -mm] parport_pc.c uses pci_find_device
Date: Mon, 08 Aug 2005 13:30:52 +0200 [thread overview]
Message-ID: <42F7426C.1020307@gmail.com> (raw)
This patch changes pci_find_device to pci_get_device (encapsulated in
for_each_pci_dev).
Generated in 2.6.13-rc5-mm1
Signed-off-by: Jiri Slaby <xslaby@fi.muni.cz>
diff --git a/drivers/parport/parport_pc.c b/drivers/parport/parport_pc.c
--- a/drivers/parport/parport_pc.c
+++ b/drivers/parport/parport_pc.c
@@ -3007,7 +3007,7 @@ static int __init parport_pc_init_superi
struct pci_dev *pdev = NULL;
int ret = 0;
- while ((pdev = pci_find_device(PCI_ANY_ID, PCI_ANY_ID, pdev)) != NULL) {
+ for_each_pci_dev(pdev) {
id = pci_match_id(parport_pc_pci_tbl, pdev);
if (id == NULL || id->driver_data >= last_sio)
continue;
--
Jiri Slaby www.fi.muni.cz/~xslaby
~\-/~ jirislaby@gmail.com ~\-/~
241B347EC88228DE51EE A49C4A73A25004CB2A10
next reply other threads:[~2005-08-08 11:33 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-08-08 11:30 Jiri Slaby [this message]
2005-08-08 23:53 ` [PATCH] removes pci_find_device from parport_pc.c 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=42F7426C.1020307@gmail.com \
--to=jirislaby@gmail.com \
--cc=akpm@osdl.org \
--cc=andrea@suse.de \
--cc=campbell@torque.net \
--cc=linux-kernel@vger.kernel.org \
--cc=philb@gnu.org \
--cc=tim@cyberelk.net \
/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