Skip to contentSkip to conversation

pci_find_device to

PATCH Greg KH 1 participant 1 message Sep 21, 2004 Kernel janitors

lore
Share & tools
lore

Greg KH

author
#0 lore raw
Quoted 9 lines · Scott Feldman

Use pci_get_device instead of pci_find_device as pci device returned from pci_find_device can disappear at any momemt in time.

diff -Naurp linux-2.6.9-rc2-mm1/drivers/net/fc/iph5526.c linux-2.6.9-rc2-mm1-dsf/drivers/net/fc/iph5526.c

drivers/net/fc/iph5526.c int iph5526_detect(Scsi_Host_Template *t · line 3714

Quoted 5 lines
drivers/net/fc/iph5526.c +1 -1
@@ -3711,7 +3711,7 @@ int iph5526_detect(Scsi_Host_Template *t
 		fc[i] = NULL;
 
 	for (i = 0; clone_list[i].vendor_id != 0; i++)
-	while ((pdev = pci_find_device(clone_list[i].vendor_id, clone_list[i].device_id, pdev))) {
+	while ((pdev = pci_get_device(clone_list[i].vendor_id, clone_list[i].device_id, pdev))) {

Ick, this needs to be converted to use the probe/release functions instead of "fixing" it in this manner.

thanks,

greg k-h

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