From owner-linux-pci@atrey.karlin.mff.cuni.cz Tue Aug 9 17:11:22 2005 Date: Wed, 10 Aug 2005 02:09:39 +0200 Message-Id: <200508100009.j7A09dhS003704@wscnet.wsc.cz> Subject: PCI: remove pci_find_device from parport_pc.c From: Jiri Slaby To: Greg KH Cc: Andrew Morton This patch changes pci_find_device to pci_get_device (encapsulated in for_each_pci_dev). Signed-off-by: Jiri Slaby Signed-off-by: Greg Kroah-Hartman --- drivers/parport/parport_pc.c | 2 +- 1 files changed, 1 insertion(+), 1 deletion(-) --- gregkh-2.6.orig/drivers/parport/parport_pc.c 2005-08-02 13:41:28.000000000 -0700 +++ gregkh-2.6/drivers/parport/parport_pc.c 2005-08-10 14:36:07.000000000 -0700 @@ -3007,7 +3007,7 @@ 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;