drivers/pnp/ remove pci_find_{device, subsys}
Subsystems (2)
PATCH 11/18 drivers/pnp/ remove pci_find_{device, subsys}
Remove deprecated pci_find_device and pci_find_subsys
Do consider applying.
Signed-off-by Amit Gud <[email protected]>
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 ; }
_______________________________________________
Kernel-janitors mailing list
[email protected]
http://lists.osdl.org/mailman/listinfo/kernel-janitors
Quoted 11 lines · Amit Gud
Remove deprecated
pci_find_deviceandpci_find_subsysDo consider applying.
Signed-off-by Amit Gud <[email protected]>diff -uprN
orig/drivers/pnp/resource.clinux-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