public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH -mm] parport_pc.c uses pci_find_device
@ 2005-08-08 11:30 Jiri Slaby
  2005-08-08 23:53 ` [PATCH] removes pci_find_device from parport_pc.c Jiri Slaby
  0 siblings, 1 reply; 2+ messages in thread
From: Jiri Slaby @ 2005-08-08 11:30 UTC (permalink / raw)
  To: Linux Kernel Mailing List; +Cc: Andrew Morton, philb, tim, campbell, andrea

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-08-08 23:54 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-08-08 11:30 [PATCH -mm] parport_pc.c uses pci_find_device Jiri Slaby
2005-08-08 23:53 ` [PATCH] removes pci_find_device from parport_pc.c Jiri Slaby

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