Browse Source

[PATCH] PCI: remove pci_find_device from parport_pc.c

This patch changes pci_find_device to pci_get_device (encapsulated in
for_each_pci_dev).

Signed-off-by: Jiri Slaby <xslaby@fi.muni.cz>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Jiri Slaby 20 years ago
parent
commit
c9d8073fd2
1 changed files with 1 additions and 1 deletions
  1. 1 1
      drivers/parport/parport_pc.c

+ 1 - 1
drivers/parport/parport_pc.c

@@ -3010,7 +3010,7 @@ static int __init parport_pc_init_superio (int autoirq, int autodma)
 	struct pci_dev *pdev = NULL;
 	struct pci_dev *pdev = NULL;
 	int ret = 0;
 	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);
 		id = pci_match_id(parport_pc_pci_tbl, pdev);
 		if (id == NULL || id->driver_data >= last_sio)
 		if (id == NULL || id->driver_data >= last_sio)
 			continue;
 			continue;