Skip to contentSkip to conversation

isa.c replace pci_find_device with pci_get_device

RFT 2.6 Hanna Linder 2 participants 2 messages Oct 8, 2004 – Oct 9, 2004 Kernel janitors

lore
Share & tools
lore
#0 lore raw

As pci_find_device is going away I've replaced it with pci_get_device. If someone with a Sparc64 system could test it I would appreciate it. Thanks.

Hanna Linder
IBM Linux Technology Center

---

arch/sparc64/kernel/isa.c +1 -1
diff -Nrup linux-2.6.9-rc3-mm3cln/arch/sparc64/kernel/isa.c linux-2.6.9-rc3-mm3patch/arch/sparc64/kernel/isa.c
@@ -262,7 +262,7 @@ void __init isa_init(void)
 	device = PCI_DEVICE_ID_AL_M1533;
 
 	pdev = NULL;
-	while ((pdev = pci_find_device(vendor, device, pdev)) != NULL) {
+	while ((pdev = pci_get_device(vendor, device, pdev)) != NULL) {
 		struct pcidev_cookie *pdev_cookie;
 		struct pci_pbm_info *pbm;
 		struct sparc_isa_bridge *isa_br;

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

#1 lore raw

arch/sparc64/kernel/isa.c void __init isa_init(void) · line 268

Quoted 9 lines · Hanna Linder
arch/sparc64/kernel/isa.c +1 -1
@@ -262,7 +262,7 @@ void __init isa_init(void)
 	device = PCI_DEVICE_ID_AL_M1533;
 
 	pdev = NULL;
-	while ((pdev = pci_find_device(vendor, device, pdev)) != NULL) {
+	while ((pdev = pci_get_device(vendor, device, pdev)) != NULL) {
 		struct pcidev_cookie *pdev_cookie;
 		struct pci_pbm_info *pbm;
 		struct sparc_isa_bridge *isa_br;

for_each_pci_dev?

-scott

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