patch-2.3.37 linux/drivers/video/tdfxfb.c

Next file: linux/drivers/video/vesafb.c
Previous file: linux/drivers/video/rivafb.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.36/linux/drivers/video/tdfxfb.c linux/drivers/video/tdfxfb.c
@@ -1969,9 +1969,8 @@
   if(!pcibios_present()) return -ENXIO;
 #endif
 
-  for(pdev = pci_devices; pdev; pdev = pdev->next) {
+  while ((pdev = pci_find_device(PCI_VENDOR_ID_3DFX, PCI_ANY_ID, pdev))) {
     if(((pdev->class >> 16) == PCI_BASE_CLASS_DISPLAY) &&
-       (pdev->vendor == PCI_VENDOR_ID_3DFX) &&
        ((pdev->device == PCI_DEVICE_ID_3DFX_BANSHEE) ||
 	(pdev->device == PCI_DEVICE_ID_3DFX_VOODOO3))) {
       char* name = pdev->device == PCI_DEVICE_ID_3DFX_BANSHEE

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)