Skip to contentSkip to conversation

parport_pc.c uses pci_find_device

PATCH New Jiri Slaby 1 participant 2 messages Aug 8, 2005 Parallel port

lore
Share & tools
lore

Jiri Slaby

author
#0 lore raw

PATCH 1/1 parport_pc.c uses pci_find_device

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

Generated in 2.6.13-rc5-mm1

drivers/parport/parport_pc.c +1 -1
@@ -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;
Signature · 3 lines
Jiri Slaby         www.fi.muni.cz/~xslaby
~\-/~      [email protected]      ~\-/~
241B347EC88228DE51EE A49C4A73A25004CB2A10
author
#1 lore raw

PATCH 1/1 removes pci_find_device from parport_pc.c

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

Generated in 2.6.13-rc5-mm1 kernel version.

drivers/parport/parport_pc.c +1 -1
@@ -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;