Skip to contentSkip to conversation

drivers/pnp/ remove pci_find_{device, subsys}

PATCH In review Amit Gud 2 participants 2 messages Feb 14, 2005

Subsystems (2)
lore
Share & tools
lore

Amit Gud

author
#0 lore raw

PATCH 11/18 drivers/pnp/ remove pci_find_{device, subsys}

Remove deprecated pci_find_device and pci_find_subsys

Do consider applying.

drivers/pnp/resource.c +1 -1
diff -uprN orig/drivers/pnp/resource.c linux-2.6.11-rc3/drivers/pnp/resource.c
@@ -387,7 +387,7 @@ int pnp_check_irq(struct pnp_dev * dev, 
 	/* check if the resource is being used by a pci device */
 	if (!pnp_skip_pci_scan) {
 		struct pci_dev * pci = NULL;
-		while ((pci = pci_find_device(PCI_ANY_ID, PCI_ANY_ID, pci)) != NULL) {
+		while ((pci = pci_get_device(PCI_ANY_ID, PCI_ANY_ID, pci)) != NULL) {
 			if (pci->irq == *irq)
 				return 0;
 		}

_______________________________________________
Kernel-janitors mailing list
[email protected]
http://lists.osdl.org/mailman/listinfo/kernel-janitors

#1 lore raw
Quoted 11 lines · Amit Gud

Remove deprecated pci_find_device and pci_find_subsys

Do consider applying.

diff -uprN orig/drivers/pnp/resource.c linux-2.6.11-rc3/drivers/pnp/resource.c

drivers/pnp/resource.c int pnp_check_irq(struct pnp_dev * dev, · line 393

Quoted 8 lines
drivers/pnp/resource.c +1 -1
@@ -387,7 +387,7 @@ int pnp_check_irq(struct pnp_dev * dev, 
 	/* check if the resource is being used by a pci device */
 	if (!pnp_skip_pci_scan) {
 		struct pci_dev * pci = NULL;
-		while ((pci = pci_find_device(PCI_ANY_ID, PCI_ANY_ID, pci)) != NULL) {
+		while ((pci = pci_get_device(PCI_ANY_ID, PCI_ANY_ID, pci)) != NULL) {
 			if (pci->irq == *irq)
 				return 0;
 		}

No, this replacement is incorrect, please do not apply it.

thanks,

greg k-h

_______________________________________________
Kernel-janitors mailing list
[email protected]
http://lists.osdl.org/mailman/listinfo/kernel-janitors