pci_find_device to
Quoted 9 lines · Scott Feldman
Use
pci_get_deviceinstead ofpci_find_deviceas pci device returned frompci_find_devicecan disappear at any momemt in time.Signed-off-by Scott Feldman <[email protected]>diff -Naurp
linux-2.6.9-rc2-mm1/drivers/net/fc/iph5526.clinux-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